Summary
In this chapter, you learned what testable code is. We discussed how you can make your application code testable, by extracting the implementation of business logic into testable methods, reducing the number of code execution paths in each method, and replacing dependencies.
In the next and final chapter, Chapter 13, Testing Incoming and Outgoing Calls, we will discuss how to test incoming and outgoing calls to and from external components. We will apply mocks to make tests, that verify business logic interacting with external components, robust. With the latter, we will illustrate dependency injection, the technique we talked about in this chapter.