Testing/Mocking with the HttpContext

Developers sometimes use the Cache property in a HttpContext to store data across sessions. This is so that you don’t have pull static data from a data store over and over and just pull it once and store it in the HttpContext. If you do unit testing for your Controllers, then you’ll eventually run into […]

Read more