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

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

            // Assert
            pipe.Inlets.Should().HaveCount(size);
            pipe.Inlets.Distinct().Should().HaveCount(size);
            pipe.Outlet.Should().NotBeNull();
            pipe.TieBreaker.Should().Be(tieBreaker);
        }
        public void Build_CreatesAPipe_BasedOnTheBuildersProperties()
        {
            // Arrange
            const int numberOfInlets = 9;
            const int numberOfOutlets = 1;
            var tieBreaker = new MinPrioritisingTieBreaker();
            tieBreakingSizedBigEitherOutletPipeBuilder.NumberOfInlets = numberOfInlets;
            tieBreakingSizedBigEitherOutletPipeBuilder.NumberOfOutlets = numberOfOutlets;
            tieBreakingSizedBigEitherOutletPipeBuilder.TieBreaker = tieBreaker;

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

            // Assert
            pipe.Inlets.Should().HaveCount(numberOfInlets);
            pipe.Inlets.Distinct().Should().HaveCount(numberOfInlets);
            pipe.Outlets.Should().HaveCount(numberOfOutlets);
            pipe.Outlets.Distinct().Should().HaveCount(numberOfOutlets);
            pipe.TieBreaker.Should().Be(tieBreaker);
            pipe.Valve.Should().NotBeNull();
        }
 public void SetUp()
 {
     var tieBreaker = new MinPrioritisingTieBreaker();
     tieBreakingSizedBigEitherInletPipeBuilder = new TieBreakingSizedBigEitherInletPipeBuilder<int, IMinPrioritisingTieBreaker>(3, tieBreaker);
 }
 public void SetUp()
 {
     var tieBreaker = new MinPrioritisingTieBreaker();
     tieBreakingSizedBigEitherOutletPipeBuilder = new TieBreakingSizedBigValvedPipeBuilder<int, string, IMinPrioritisingTieBreaker>(3, 4, tieBreaker);
 }