The repository pattern provides a way to provide isolation between the data access layer of your application with the business layer.

- Stackoverflow.com Wiki
2 articles, 0 books.

A look at how to unit test code that makes use of Repository vs using raw Entity Framework, where we will do this using mocks/test doubles.


The real problem that I have with these interfaces comes from their improper usage. The original idea behind them is that they should be used as a base interfaces for your custom repository interfaces.