public void SetUp() { _connection = EmbeddedEventStore.Connection; _reader = SnapshotReaderFactory.Create(); _configuration = EventReaderConfigurationFactory.Create(); _unitOfWork = new UnitOfWork(); _factory = SnapshotableAggregateRootEntityStub.Factory; }
public void SetUp() { _model = new Model(); _sut = SnapshotReaderFactory.Create(); CreateSnapshotStreamWithOneSnapshot(_sut.Configuration.StreamNameResolver.Resolve(_model.KnownIdentifier)); }
public void ReadIdentifierCannotBeNull() { var sut = SnapshotReaderFactory.Create(); Assert.Throws <ArgumentNullException>(() => sut.ReadOptional(null)); }
public void IsSnapshotReader() { Assert.That(SnapshotReaderFactory.Create(), Is.InstanceOf <ISnapshotReader>()); }
public void SetUp() { _model = new Model(); _sut = SnapshotReaderFactory.Create(); }