November 2018
Intermediate to advanced
346 pages
8h 12m
English
In Chapter 6, Dependency Injection with Constructor Injection, we used constructor injection to decouple our model layer from the exchange package. You may remember that the exchange package is a thin abstraction over our upstream currency converter service. Not only did this ensure that our model layer tests no longer required the upstream service to be working in order to pass, but it also gave us the ability to ensure we had adequately handled cases where the service was failing.
In Chapter 8, Dependency Injection by Config, we added boundary tests that further removed our dependence on the upstream service by giving us the ability to test the exchange package independently of the upstream service. ...
Read now
Unlock full access