public void Then_DoesNotThrowWhenEventsAreTheSameAsStorage()
        {
            var events        = new IDomainEvent[] { new FakeDomainEvent() };
            var untypedEvents = events.Select(e =>
                                              new UntypedEventEnvelope(Guid.NewGuid()
                                                                       , new UntypedEventEnvelope.EventMetadata(Guid.NewGuid().ToString()
                                                                                                                , Guid.NewGuid().ToString())
                                                                       , e)
                                              ).ToArray();

            _storage.AppendEvents("", 0, untypedEvents);

            _sut.Then(events);
        }
예제 #2
0
 public void Then(params IDomainEvent[] expectedEvents)
 {
     _scenarios.Then(expectedEvents);
 }