Exemple #1
0
            public void ConfigurationReturnsExpectedValue()
            {
                var configuration = SnapshotReaderConfigurationFactory.Create();

                Assert.That(SnapshotReaderFactory.CreateWithConfiguration(configuration).Configuration,
                            Is.SameAs(configuration));
            }
Exemple #2
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> >();
 }
Exemple #3
0
 public void SetUp()
 {
     _configuration = SnapshotReaderConfigurationFactory.Create();
     _connection    = EmbeddedEventStore.Connection;
 }