EfTestability

Wed, 05 Apr 2023 02:03:19 GMT

Slides and sample projects illustrating some options you have for testing Entity Framework models. The samples illustrate some ways that you can perform unit testing with and without abstracting the Entity Framework into repositories. NOTE: One test in the solution intentionaly fails to illustrate how you should write your test so that it fails first. Once you write your implemntation, the test should pass. In the EDMX based models, you can generate the database using the "Generate Model From Database" option in the designer.