protected override void Context() { _snapshot = new Snapshot(StreamId, 1, "Snapshot"); _persistence1 = Partitions.NewEventStoreWithPartition(); _persistence2 = Partitions.NewEventStoreWithPartition(); _persistence1.Commit(StreamId.BuildAttempt()); }
protected override void Context() { _persistence1 = Partitions.NewEventStoreWithPartition(); _persistence2 = Partitions.NewEventStoreWithPartition(); DateTime now = SystemTime.UtcNow; _attempt1 = StreamId.BuildAttempt(now); _attempt2 = StreamId.BuildAttempt(now.Subtract(TimeSpan.FromDays(1))); _persistence1.Commit(_attempt1); }