public void SliceSizeReturnsExpectedResult() { var size = new SliceSize(2); var sut = new EventSourceReaderConfiguration( StreamNameConversions.PassThru, () => null, size); Assert.Equal(size, sut.SliceSize); }
EventReaderConfigurationBuilder( SliceSize sliceSize, IEventDeserializer deserializer, IStreamNameResolver streamNameResolver, IStreamUserCredentialsResolver streamUserCredentialsResolver) { _sliceSize = sliceSize; _deserializer = deserializer; _streamNameResolver = streamNameResolver; _streamUserCredentialsResolver = streamUserCredentialsResolver; }
public EventReaderConfigurationBuilder UsingSliceSize(SliceSize value) { return new EventReaderConfigurationBuilder(value, _deserializer, _streamNameResolver, _streamUserCredentialsResolver); }
public EventReaderConfigurationBuilder UsingSliceSize(SliceSize value) { return(new EventReaderConfigurationBuilder(value, _deserializer, _streamNameResolver, _streamUserCredentialsResolver)); }
public void CanBeConvertedToInt32() { var value = new SliceSize(3).ToInt32(); Assert.Equal(3, value); }
public void CanImplicitlyBeConvertedToInt32() { Int32 value = new SliceSize(2); Assert.Equal(2, value); }
public void SizeCanBeWithinBounds(int value) { var _ = new SliceSize(value); }