Testing ASP.NET MVC application with Session state

· November 17, 2009

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!

Twitter, Facebook