Testing ASP.NET MVC application with Session state

Posted by Marcus Hammarberg on November 17, 2009
Stats

I ran into trouble when I tried to use Session-state in an ASP.NET MVC application.

The hit came when I tried to write a unit test for the Action-method that stored stuff in the Session-object.

For a short while I found myself pondering that, but then I ran home to mummy – MVC Contrib. My God – they have much useful in there.

The thing that save me this time was the TestHelper, that solved exactly my problem.

Installed in three minutes and up and running again in five. Great!



Published by Marcus Hammarberg on Last updated