public void when_queue_name_matcher_set_it_should_be_set_in_configuration()
        {
            var configuration = new BrokerIngressConfiguration();
            var sut           = new BrokerIngressConfigurator(configuration);

            sut.WithQueueNameMatcher <StabQueueNameMatcher>().Should().BeSameAs(sut);
            configuration.QueueNameMatcherType.Should().Be <StabQueueNameMatcher>();
        }
        public void when_queue_name_matcher_set_more_than_once_it_should_fail()
        {
            var    configuration = new BrokerIngressConfiguration();
            var    configurator  = new BrokerIngressConfigurator(configuration);
            Action sut           = () => configurator.WithQueueNameMatcher <StabQueueNameMatcher>();

            sut.Should().NotThrow();
            configuration.QueueNameMatcherType.Should().Be <StabQueueNameMatcher>();
            EnsureSecondCallOfConfigurationMethodFails(sut);
        }