Unit testing session and application variables without mocking
If you have been unit testing your asp.net web applications that use session and application variables then you almost certainly have encountered this problem and asked yourself \"How to unit test HttpContext.Current variables?\". The general answer you would find online is use a mocking framework (Moq, Rhino Mocks, etc.). While this is the best answer, it assumes that you have written your application using interfaces to pass objects from one place to another....