Chapter 18. Testing Entity Framework
This chapter covers
- Unit-testing basics
- Dependency isolation and mock objects
- Persistence testing with Entity Framework
Testing is a critical part of the software development lifecycle—development can’t be considered complete until you’ve verified
that the code you wrote works as expected. Unfortunately, testing code is rarely a trivial task for two main reasons:
- Test complexity strongly depends on the complexity of the application itself. It tends to grow in a nonlinear manner as you
add functionality, objects, tiers, or dependencies with external systems.
- Fixing bugs or adding new features can potentially lead to regressions, harming your software stability and reliability. In these cases, you ...