public RepositoryScenarioBuilder() { _connection = EmbeddedEventStore.Instance.Connection; _unitOfWork = new UnitOfWork(); _concurrentUnitOfWork = new ConcurrentUnitOfWork(); _eventReaderConfiguration = EventReaderConfigurationFactory.Create(); _snapshotReaderConfiguration = SnapshotReaderConfigurationFactory.Create(); _eventStoreSchedule = new List <Action <IEventStoreConnection> >(); _unitOfWorkSchedule = new List <Action <UnitOfWork> >(); _concurrentUnitOfWorkSchedule = new List <Action <ConcurrentUnitOfWork> >(); }
public void SetUp() { _configuration = SnapshotReaderConfigurationFactory.Create(); _connection = EmbeddedEventStore.Connection; }
public static SnapshotReader Create(IEventStoreConnection connection, SnapshotReaderConfiguration configuration) { return(new SnapshotReader(connection, configuration)); }
public static SnapshotReader CreateWithConfiguration(SnapshotReaderConfiguration configuration) { return(Create(EmbeddedEventStore.Instance.Connection, configuration)); }