prototype for easy and declarative definition of Events that should be present in the EventStore during testing of something
✓ Published0🌍 Public
RRestuta
Last edited Feb 6, 2013
Created on Feb 6, 2013
This example shows a fluent C# API for declaratively defining expected events in an EventStore during testing. It uses a builder pattern with `InsertEventsTo(EventStore)` and chained `.AggregateId(...)` calls, mapping aggregate IDs to arrays of `FakeEvent` objects like `ContactCreated` and `TaskCreated`. The code highlights a readable, intention-revealing syntax for setting up test fixtures without explicit event construction logic.
AI-generated description