ASP.NET MVC : Injecting & Mocking an IRepository
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.