Use case – extending the BookSwap application
The BookSwap
web application was introduced in Chapter 4, Building Efficient Test Suites. Its main functionality allows users to list their books and swap them with other users. We learned what its main components and endpoints are, as well as how to apply table testing to its BookService
. Then, in Chapter 5, Performing Integration Testing, we learned how to write integration tests for its Index
request handler. We will continue to build out the functionality of this application in this chapter, taking a closer look at the user flows and intended functionality for each endpoint.
Figure 6.1 depicts a summary of the responsibilities of the three main services of the BookSwap
application—BookService
, UserService
, and PostingService
:
Figure 6.1 – The responsibilities of the main components of the BookSwap application
Each of the services has its own specialization and separate responsibilities...