コード例 #1
0
        public void SliceSizeReturnsExpectedResult()
        {
            var size = new SliceSize(2);
            var sut  = new EventSourceReaderConfiguration(
                StreamNameConversions.PassThru,
                () => null,
                size);

            Assert.Equal(size, sut.SliceSize);
        }
コード例 #2
0
 EventReaderConfigurationBuilder(
     SliceSize sliceSize,
     IEventDeserializer deserializer,
     IStreamNameResolver streamNameResolver,
     IStreamUserCredentialsResolver streamUserCredentialsResolver)
 {
     _sliceSize = sliceSize;
     _deserializer = deserializer;
     _streamNameResolver = streamNameResolver;
     _streamUserCredentialsResolver = streamUserCredentialsResolver;
 }
コード例 #3
0
 EventReaderConfigurationBuilder(
     SliceSize sliceSize,
     IEventDeserializer deserializer,
     IStreamNameResolver streamNameResolver,
     IStreamUserCredentialsResolver streamUserCredentialsResolver)
 {
     _sliceSize                     = sliceSize;
     _deserializer                  = deserializer;
     _streamNameResolver            = streamNameResolver;
     _streamUserCredentialsResolver = streamUserCredentialsResolver;
 }
コード例 #4
0
 public EventReaderConfigurationBuilder UsingSliceSize(SliceSize value)
 {
     return new EventReaderConfigurationBuilder(value, _deserializer, _streamNameResolver,
                                                _streamUserCredentialsResolver);
 }
コード例 #5
0
 public EventReaderConfigurationBuilder UsingSliceSize(SliceSize value)
 {
     return(new EventReaderConfigurationBuilder(value, _deserializer, _streamNameResolver,
                                                _streamUserCredentialsResolver));
 }
コード例 #6
0
        public void CanBeConvertedToInt32()
        {
            var value = new SliceSize(3).ToInt32();

            Assert.Equal(3, value);
        }
コード例 #7
0
        public void CanImplicitlyBeConvertedToInt32()
        {
            Int32 value = new SliceSize(2);

            Assert.Equal(2, value);
        }
コード例 #8
0
 public void SizeCanBeWithinBounds(int value)
 {
     var _ = new SliceSize(value);
 }