I am currently writing unit tests for my handler methods using NUnit . I used HttpContext.Current
in one of my controller methods, which throws a NULL reference exception in HttpContext.Current
when I run test cases for my handler.
Is there any way to make fun of the HttpContext ? or is there any other way to solve this problem.
source share