예제 #1
0
            public async Task AppendUncommittedEventsToNewStream([Frozen] IEventStoreConnection connection,
                                                                 IAggregateRoot <TestAggregate> aggregateRoot, EventStoreRepository sut)
            {
                await sut.SaveAsync(aggregateRoot);

                await connection.Received(1).AppendToStreamAsync($"{aggregateRoot.GetType().Name}-{aggregateRoot.Id}",
                                                                 aggregateRoot.OriginalVersion, aggregateRoot.GetUncommittedEvents());
            }