Mock Response.Cookies.Add(...) in MVC unit testing
The basic problem is that the controller I'm testing calls Response.Cookies.Add(…) but since the unit test is not in an HTTPContext, Response is null and I get an exception. Can someone give me an example. ?
Replies
Know the answer? Post it — somebody with the same question will find it here.