1

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

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.