Beispiel #1
0
 protected override Task Because()
 {
     Stream = new OptimisticEventStream(BucketId, StreamId, Persistence, SystemTimeProvider);
     Stream.Add(new EventMessage()
     {
         Body = "body"
     });
     return(Stream.CommitChanges(Guid.NewGuid()));
 }
 protected override void Because()
 {
     Stream = new OptimisticEventStream(BucketId, StreamId, Persistence);
     Stream.Add(new EventMessage()
     {
         Body = "body"
     });
     Stream.CommitChanges(Guid.NewGuid());
 }