© Brian L. Gorman 2020
B. L. GormanPractical Entity Frameworkhttps://doi.org/10.1007/978-1-4842-6044-9_12

12. Unit Testing, Integration Testing, and Mocking

Brian L. Gorman1 
(1)
Jesup, IA, USA
 

Testing your code is a must-have, not a nice-to-have

Your system has thousands of lines of code. There is at least one user interface (UI) that connects to your business layer, and your system has multiple user interfaces, from Web to device to desktop to scanners to monitors, and more. And now it’s time to change some code. Perhaps that code has been around for a while. Chances are, you didn’t write the code. The system certainly has some extremely risky scenarios where broken code can mean loss of revenue (even millions), or, in an even more high-risk scenario, ...

Get Practical Entity Framework: Database Access for Enterprise Applications 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.