I have method in my controller there I use Request.InputStream. How to write a tests that will cause the method of the controller with the set by me data in Request.InputStream?
My method:
var result = new MediaJsonResult();
try
{
using (var str = new StreamReader(Request.InputStream))
{
.....
I write Tests on NUnit