Mock ASP.Net User in WebForms Application
2 answers
I am not now how long you can refactor your legacy application. If you have .NET 3.5, you can use the HttpContextWrapper class, which is part of the System.Web.Abstraction assembly.
You can read more and see an example like Stub / Mock HttpContext .
+1
a source to share