Loading lesson…
Level 1 · Apprentice0 XP
The two inner rings: business objects with rules, and the stories that use them.
Step 1 / 6
ProblemOrderService has 40 methods. The rule 'an order cannot be shipped before it is paid' is checked in three of them, differently. Nobody can list what the application actually does.
← → step
Before this: The dependency rule
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Model 'cancel subscription' with an entity (Subscription.cancel() refuses if already cancelled or past the end date) and a use case CancelSubscription that loads, cancels, saves and publishes an event. Test it with in-memory fakes.