tags:

views:

21

answers:

1

I have a ASP.NET MVC 1.0 Controller which implements a HttpSession object for storing sorted result

How I can test the Controller from MbUnit?

A: 

You'll need a mocking framework like Rhino Mocks or Moq (there are even more). Then you have to mock your session and other context objects. Scott Hanselman has a very helpful post on how to achieve this.

Regards.

uvita