Integration Testing of Entity Framework 6 Applications
Entity Framework is the best way to create a data access layer in .NET. This course will show you how to test that data access layer, whether you are using EF6 or EF Core.
What you'll learn
Having a good integration test suite is your greatest asset. In this course, Integration Testing of Entity Framework 6 Applications, you'll learn that a good integration test suite is the best way to ensure the quality of your Entity Framework application. First, you'll set up a Continuous Integration server to rebuild a database and run all integration tests on every checkin. Next, you'll keep your test readable and resilient to change, so that they help you implement new features rather than hold you back. Finally, you'll find the balance between unit tests and integration tests so that you use the best technique in every case. After this course, you'll know that by investing in a quality test suite you'll increase both velocity and quality.
Table of contents
- Strategy for Unit Testing 2m
- Domain Driven Design Review 5m
- Avoid Anemic Domain Models 5m
- Testing the Domain Model 3m
- Modifying Data in a Test 5m
- Covering Code with Both Unit Tests and Integration Tests 3m
- Highway.Data 5m
- Preparing Services for Highway.Data 5m
- Configuring Highway.Data 3m
- Initializing Test Data with Highway.Data 3m
- Limitations of Highway.Data 2m
- EF Core In-memory Database Provider 2m
- Unit Testing with EF Core 4m
- Initializing Test Data with EF Core 4m
- Summary 2m
- Problems with Copy/paste Testing 3m
- Move Initialization into Given Methods 2m
- Collect Prerequisites into Test Context 2m
- Localize API Calls to Simplify Refactoring 1m
- Clarify Intent with When Methods 2m
- Use Default Parameters to Customize Intent 2m
- Hide Implementation Details to Make Intent Obvious 1m
- Move Given and When Methods to Test Context 2m
- Define a Hierarchy of Test Contexts 4m
- Why Not Use Test Fields? 2m
- Better Integration Tests 2m