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 ...

Get Entity Framework 4 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.