65.9K
CodeProject is changing. Read more.
Home

ASP.NET MVC : Injecting & Mocking an IRepository

starIconstarIconstarIconstarIconemptyStarIcon

4.00/5 (1 vote)

Mar 5, 2010

CPOL

3 min read

viewsIcon

29173

If you are already familiar with ASP.NET MVC, you have probably seen the repository pattern in a few examples (such as NerdDinner), maybe you even use it in your own app.One of the most frequent way to hot-plug a Repository class into a controller is to use the Strategy Pattern.