public void SetUp()
        {
            _publisher = new StubEventPublisher();
            _eventStore = new global::InMemoryEventStore.InMemoryEventStore(_publisher);

            _eventStore.SaveEvents(_aggregateId, EventStreamToSave(), -1);
        }
        public void SetUp()
        {
            _publisher = new StubEventPublisher();
            _eventStore = new global::InMemoryEventStore.InMemoryEventStore(_publisher);
            _eventStore.SaveEvents(_aggregateId, InitialEventsToSave(), -1);
            _publisher.ClearPublishedEvents();

            try
            {
                _eventStore.SaveEvents(_aggregateId, AdditionalEventsToSave(), 3);
            } catch (Exception e)
            {
                _caughtException = e;
            }
        }
 public void TestSetUp()
 {
     _eventPublisher = new StubEventPublisher();
     _eventStore = new InMemoryEventStore.InMemoryEventStore(_eventPublisher);
     _repository = new EventStoreRepository(_eventStore);
 }