January 2021
Intermediate to advanced
560 pages
15h 13m
English
This chapter covers
Dependency is the key problem in software development at all scales. . . . Eliminating duplication in programs eliminates dependency.
--Kent Beck, Test-Driven Development: By Example
The persistence layer (or, roughly speaking, database access code) is undoubtedly one of the most important parts of any enterprise project. Despite its importance, the persistence layer is hard to unit test, mainly due to the following three issues:
Unit tests must exercise code in isolation; the ...