Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
how can i set Application variable to mock data
Posted

1 solution

Following might help: Mocking HttpContext for Unit Testing[^]
 
Share this answer
 
Comments
Rupa1 17-Jan-13 2:53am    
where we are setting Application variable object..?
if it is a session, we can set it like "_controllerContext.SetupGet(p => p.HttpContext.Session["someid"]).Returns(someid);"

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900