Mocking ASP.NET MVC

ASP.NET MVC is a way to write website code on Windows, the problem is that it need a running web server in place which makes unit testing a real challenge.
The web server objects are hard to simulate because of their static nature, and so most automated testing is relegated to browser automation.

Unit testing ASP.NET MVC code requires isolation from the web server, with Typemock Isolator you can write unit tests for your server components, without opening a browser.
Isolator helps simulate the HttpContext, Session and other objects so your tests run quickly.

The following samples shows how to easily unit test your custom code:

Faking HttpContext and ModelState.

Faking HttpContext and HttpRequest.