The homework for this chapter will be similar in scope to what we did in the Refactoring homework section of Chapter 3, Curing Anemic Models with Domain-Driven Design, where you will finish converting the remaining modules of credit processing and user management over to event sourcing. Make your code changes in the code within the -incomplete
bookstore app. When you are done, you can check out my fully converted code in the -complete
code-base folder.
I've already added in the data model .proto files for each of these two modules and the generated binding classes. This is so you won't have to go through the trouble of installing the protoc compiler. Also, keep in mind that you won't be able to handle the multiuser lookup functionality in the CustomerRelationsManager
yet, so just comment that functionality out for now. You'll get that code working again in the Refactoring homework section, in Chapter 5, Separating Concerns with CQRS,.
With the user-management project,...