Testing
In-memory persistence
InMemoryCrudRepository / EF6InMemoryCrudRepository
FakeRepository
Domain model testing
EventSourcedEntityTestingHelpers
static void AssertEvents<T>(this T aggregate, Action<T> action,
Action<T> stateAssertion, bool loadEventsOnly,
params DomainAggregateEvent[] expectedEvents)
where T : EventSourcedAggregateRoot;
static void AssertAllEvents<T>(this T aggregate, Action<T> action,
Action<T> stateAssertion, bool loadEventsOnly,
params DomainAggregateEvent[] expectedEvents)
where T : EventSourcedAggregateRoot;
static void AssertConstructorEvents<T>(this T aggregate,
Action<T> stateAssertion, bool loadEventsOnly,
params DomainAggregateEvent[] expectedEvents)
where T : EventSourcedAggregateRoot;Last updated