public void Setup() { // Arrange _eventPublisher = new InMemoryEventBus(new MessageRouterStub()); var eventStore = new RavenEventStore(_eventPublisher, "RavenDB"); eventStore.DeleteCollection(); _aggregate = new StubAggregate(); _aggregate.AggregateId = Guid.NewGuid(); _aggregate.DoThis(); _aggregate.DoSomethingElse(); _aggregate.DoThis(); _aggregate.DoSomethingElse(); _aggregateId = _aggregate.AggregateId; eventStore.Insert(_aggregate); eventStore.Commit(); }