Test your Domain when Event Sourcing

preview_player
Показать описание
How do you test your domain when Event Sourcing? I find testing aggregates with Event Sourcing to be simpler than testing if you're storing current state. The inputs to your aggregate are events and the output of your aggregate are events.

Given an stream of events
When a valid command is performed
Then new event(s) occurs

💥 Join this channel to get access to source code & demos!

🔥 Don't have the JOIN button? Support me on Patreon!

0:00 Event Sourcing
1:27 Application Flow
4:04 Aggregate
5:17 Basic Tests
6:46 Given/When/Then

#eventsourcing #cqrs #softwarearchitecture
Рекомендации по теме