Appendix C. Using a Mock Object Framework
In This Chapter
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. ...
Get ASP.NET MVC Framework Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.