O'Reilly logo

Entity Framework 4 in Action by Daniele Bochicchio, Marco De Sanctis, Stefano Mostarda

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required