예제 #1
0
            public async Task ClearUncommittedEventsFromAggregate(IAggregateRoot <TestAggregate> aggregateRoot,
                                                                  EventStoreRepository sut)
            {
                await sut.SaveAsync(aggregateRoot);

                aggregateRoot.Received(1).ClearUncommittedEvents();
            }