I have Asp.Net Web Forms application and I have unit tests for my pages. How I can mock User in my application? I tried to find the HttpContext on the page, but I could not.
Asked
Active
Viewed 132 times
0
-
Are you looking something like this - http://stackoverflow.com/questions/13579519 – Karthik Mar 15 '17 at 10:51
-
Provide a [mcve] showing what you have tried so far and desired behavior – Nkosi Mar 15 '17 at 12:09
-
Karthik, an example that you gave for MVC, not Web Forms. Web Forms don't contains ControllerContext – Alex Mar 15 '17 at 13:18