Dec 16, 2007 12:33 PM|JeremyS|LINK
I am trying to test an action that stores some data in the HttpContext.Cache. What I would like to be able to do is create a mock Cache object so that I can assert that the correct data has been stored.
My current solution is to create a wrapper object for the cache. While this works, it would be nice to see it in the framework by default, especially as other properties on httpcontext have been abstracted this way (Reques, Response, Session etc)