---
title: "Testing ASP.NET MVC Controllers with Typemock Isolator"
url: "https://osherove.com/blog/2008/3/9/testing-aspnet-mvc-controllers-with-typemock-isolator.md"
canonical: "https://osherove.com/blog/2008/3/9/testing-aspnet-mvc-controllers-with-typemock-isolator.html"
published: "2008-03-09T02:28:40"
updated: "2008-03-09T02:28:40"
tags: ["Agile", "Testing Guidelines", "Unit Testing"]
author: "Roy Osherove"
description: "Scott Hanselman posted his notes and slides (and movies!) from his talk on the ASP.NET MVC framework, where he also mentioned and shows how he's write unit tests for the MVC framework in ASP.NET. Scott has examples both…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Testing ASP.NET MVC Controllers with Typemock Isolator

By Roy Osherove March 9, 2008 In [Agile](https://osherove.com/blog/category/agile), [Testing Guidelines](https://osherove.com/blog/category/testing-guidelines), [Unit Testing](https://osherove.com/blog/category/unit-testing)

**Historical article** · Originally published March 9, 2008; technical details may be outdated.

[Scott Hanselman posted his notes and slides](http://www.hanselman.com/blog/ASPNETMVCSessionAtMix08TDDAndMvcMockHelpers.aspx) (and movies!) from his talk on the ASP.NET MVC framework, where he also mentioned and shows how he's write unit tests for the MVC framework in ASP.NET.

Scott has examples both in [Moq](http://code.google.com/p/moq/) and [Rhino.Mocks](http://www.ayende.com/projects/rhino-mocks/downloads.aspx) on how to write these tests, so I created the [parallel thing for Typemock Isolator](http://blog.typemock.com/2008/03/testing-aspnet-mvc-using-typemock.html). If you use Typemock Isolator and want to test ASP.NET MVC - [you can go right here](http://blog.typemock.com/2008/03/testing-aspnet-mvc-using-typemock.html) and use the MvcMockHelpers class.

## More in Agile

[All posts in Agile](https://osherove.com/blog/category/agile)

- Mar 15, 2008

    ### [Belgium TechDays Slides and demos, and my travel schedule](https://osherove.com/blog/2008/3/15/belgium-techdays-slides-and-demos-and-my-travel-schedule.html)

- Mar 9, 2008

    ### [Testing loops?](https://osherove.com/blog/2008/3/9/testing-loops.html)

- Mar 1, 2008

    ### [What is a good example of unit test over specification?](https://osherove.com/blog/2008/3/1/what-is-a-good-example-of-unit-test-over-specification.html)

- Feb 27, 2008

    ### [Typemock Isolator 4.2 released](https://osherove.com/blog/2008/2/27/typemock-isolator-42-released.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
