The purpose of this appendix is to provide a brief overview of Mock Object Frameworks. Most classes that you want to test depend on multiple other classes. A Mock Object Framework makes it possible to isolate code so that it is testable.
You can use several popular Mock Object Frameworks with ASP.NET MVC including the following:
• Moq—An open source Mock Object Framework that is relatively new but already popular. The ASP.NET MVC used Moq. You can download Moq from http://code.google.com/p/moq.
• Rhino Mocks—The established open source Mock Object Framework. ...