public void when_exit_pipe_fitter_set_it_should_be_set_in_configuration()
        {
            var configuration = new BrokerEgressConfiguration();
            var sut           = new BrokerEgressConfigurator(configuration);

            sut.WithExitPipeFitter <StabPipeFitter>().Should().BeSameAs(sut);
            configuration.ExitPipeFitterType.Should().Be <StabPipeFitter>();
        }
        public void when_exit_pipe_fitter_set_more_than_once_it_should_fail()
        {
            var    configuration = new BrokerEgressConfiguration();
            var    configurator  = new BrokerEgressConfigurator(configuration);
            Action sut           = () => configurator.WithExitPipeFitter <StabPipeFitter>();

            sut.Should().NotThrow();
            configuration.ExitPipeFitterType.Should().Be <StabPipeFitter>();
            EnsureSecondCallOfConfigurationMethodFails(sut);
        }