Click here to Skip to main content
15,880,651 members
Articles / Programming Languages / C#

Improving your MVC Unit Tests with Interfaces, Dependency Injection, and Mocking

Rate me:
Please Sign up or sign in to vote.
4.94/5 (11 votes)
2 Nov 2014CPOL9 min read 56.7K   27  
An introduction to developing and testing MVC controllers that are loosely coupled to heavy weight service classes that use external services such as SQL databases.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
United States United States
I am a senior software engineer and technical lead for a mid-sized technology firm. I have an extensive background in designing, developing, and supporting ASP.NET web-based solutions. I am currently extending my skill-set to the area of application identity management and access control.

Comments and Discussions