-
Book Overview & Buying
-
Table Of Contents
Clean Architecture with .NET
By :
In the previous chapter, we designed our domain entities and introduced the Add Item to Cart use case to demonstrate how business logic fits within the Application layer. Now, it's time to expand on that foundation.
In this chapter, we'll continue building out Project Odyssey by implementing additional use cases that complete the core shopping experience: removing items, calculating totals, and preparing orders for checkout. Each use case will follow the same pattern by having a clear input model, a focused application service, and isolated domain logic that can be tested independently of the UI or infrastructure.
Project Odyssey supports three primary roles:
With these roles in mind, we'll now define and implement further use cases that bring the shopping flow...