Given I have an empty cart
When I add a product to the cart
Then the product should be added to the cart
to test command side of the aggregate.
Given I have an empty cart
And I added an product to the cart
When I ask for the cart's total
Then the cart's total should be $500
to test read model (query side).
to test command side of the aggregate.
to test read model (query side).