Example #1
0
 public void SetUp()
 {
     _connection    = EmbeddedEventStore.Connection;
     _reader        = SnapshotReaderFactory.Create();
     _configuration = EventReaderConfigurationFactory.Create();
     _unitOfWork    = new UnitOfWork();
     _factory       = SnapshotableAggregateRootEntityStub.Factory;
 }
Example #2
0
 public void SetUp()
 {
     _model = new Model();
     _sut   = SnapshotReaderFactory.Create();
     CreateSnapshotStreamWithOneSnapshot(_sut.Configuration.StreamNameResolver.Resolve(_model.KnownIdentifier));
 }
Example #3
0
            public void ReadIdentifierCannotBeNull()
            {
                var sut = SnapshotReaderFactory.Create();

                Assert.Throws <ArgumentNullException>(() => sut.ReadOptional(null));
            }
Example #4
0
 public void IsSnapshotReader()
 {
     Assert.That(SnapshotReaderFactory.Create(), Is.InstanceOf <ISnapshotReader>());
 }
Example #5
0
 public void SetUp()
 {
     _model = new Model();
     _sut   = SnapshotReaderFactory.Create();
 }