Skip to content

Commit

Permalink
Merge pull request dotnet#4362 from melinda-schmitz/patch-2
Browse files Browse the repository at this point in the history
Update implementing-the-repository-and-unit-of-work-patterns-in-an-as…
  • Loading branch information
scottaddie authored Sep 23, 2017
2 parents e6bcd56 + 8bd45d3 commit 12aa34e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ In the original version of the code, `students` is typed as an `IQueryable` obje

The following section shows how to implement repository methods that enable you to specify that this work should be done by the database.

You've now created an abstraction layer between the controller and the Entity Framework database context. If you were going to perform automated unit testing with this application, you could create an alternative repository class in a unit test project that implements `IStudentRepository`*.*Instead of calling the context to read and write data, this mock repository class could manipulate in-memory collections in order to test controller functions.
You've now created an abstraction layer between the controller and the Entity Framework database context. If you were going to perform automated unit testing with this application, you could create an alternative repository class in a unit test project that implements `IStudentRepository`*.* Instead of calling the context to read and write data, this mock repository class could manipulate in-memory collections in order to test controller functions.

## Implement a Generic Repository and a Unit of Work Class

Expand Down

0 comments on commit 12aa34e

Please sign in to comment.