Event Sourcing
Event Sourcing Testing: How to Test Event-Sourced Systems Correctly
Event sourcing inverts the traditional data model — instead of storing current state, you store a sequence of events that describe what happened. This makes testing both easier and harder. Easier because events are immutable facts you can inspect directly. Harder because bugs in event replay logic corrupt all derived state,