public void Build_CreatesAPipe_BasedOnTheBuildersProperties()
        {
            // Arrange
            const int size       = 9;
            var       tieBreaker = new MinPrioritisingTieBreaker();

            tieBreakingSizedBigEitherOutletPipeBuilder.Size       = size;
            tieBreakingSizedBigEitherOutletPipeBuilder.TieBreaker = tieBreaker;

            // Act
            var pipe = tieBreakingSizedBigEitherOutletPipeBuilder.Build();

            // Assert
            pipe.Inlet.Should().NotBeNull();
            pipe.Outlets.Should().HaveCount(size);
            pipe.Outlets.Distinct().Should().HaveCount(size);
            pipe.TieBreaker.Should().Be(tieBreaker);
        }
        public IBigValvedPipe <TReceive, TSend, IMinPrioritisingTieBreaker> Build()
        {
            var tieBreaker = new MinPrioritisingTieBreaker();

            return(new TieBreakingSizedBigValvedPipeBuilder <TReceive, TSend, IMinPrioritisingTieBreaker>(NumberOfInlets, NumberOfOutlets, tieBreaker).Build());
        }
        public void SetUp()
        {
            var tieBreaker = new MinPrioritisingTieBreaker();

            tieBreakingSizedBigEitherOutletPipeBuilder = new TieBreakingSizedBigValvedPipeBuilder <int, string, IMinPrioritisingTieBreaker>(3, 4, tieBreaker);
        }
        public IBigEitherOutletPipe <TMessage, IMinPrioritisingTieBreaker> Build()
        {
            var tieBreaker = new MinPrioritisingTieBreaker();

            return(new TieBreakingSizedBigEitherOutletPipeBuilder <TMessage, IMinPrioritisingTieBreaker>(Size, tieBreaker).Build());
        }
Пример #5
0
        public void SetUp()
        {
            var tieBreaker = new MinPrioritisingTieBreaker();

            tieBreakingSizedBigEitherInletPipeBuilder = new TieBreakingSizedBigEitherInletPipeBuilder <int, IMinPrioritisingTieBreaker>(3, tieBreaker);
        }