public void ConfigurationReturnsExpectedValue() { var configuration = SnapshotReaderConfigurationFactory.Create(); Assert.That(SnapshotReaderFactory.CreateWithConfiguration(configuration).Configuration, Is.SameAs(configuration)); }
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 ConnectionReturnsExpectedValue() { var connection = EmbeddedEventStore.Connection; Assert.That(SnapshotReaderFactory.CreateWithConnection(connection).Connection, Is.SameAs(connection)); }
public void IsSnapshotReader() { Assert.That(SnapshotReaderFactory.Create(), Is.InstanceOf <ISnapshotReader>()); }
public void SetUp() { _model = new Model(); _sut = SnapshotReaderFactory.Create(); }