示例#1
0
 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> >();
 }
示例#2
0
 public void SetUp()
 {
     _configuration = SnapshotReaderConfigurationFactory.Create();
     _connection    = EmbeddedEventStore.Connection;
 }
 public void SetUp()
 {
     _configuration = SnapshotReaderConfigurationFactory.Create();
     _connection = EmbeddedEventStore.Connection;
 }
示例#4
0
 public static SnapshotReader Create(IEventStoreConnection connection, SnapshotReaderConfiguration configuration)
 {
     return(new SnapshotReader(connection, configuration));
 }
示例#5
0
 public static SnapshotReader CreateWithConfiguration(SnapshotReaderConfiguration configuration)
 {
     return(Create(EmbeddedEventStore.Instance.Connection, configuration));
 }