public void when_set_kafka_driver_without_configurator_it_should_fail()
        {
            var    configuration = MakeConfiguration();
            var    configurator  = new BrokerIngressConfigurator(configuration);
            Action sut           = () => configurator.WithKafkaDriver(configurator: null);

            sut.Should().ThrowExactly <ArgumentNullException>();
        }
        public void when_set_kafka_driver_it_should_set_driver_on_broker_ingress()
        {
            var configuration = MakeConfiguration();
            var configurator  = new BrokerIngressConfigurator(configuration);

            configurator.WithKafkaDriver(
                driverConfigurator => driverConfigurator
                .WithHeaderValueCodec <IHeaderValueCodec>()
                .WithConsumerConfig(new ConsumerConfig())
                .WithConsumerConfigurator <IConsumerConfigurator>()
                .WithConsumerFactory <IApiConsumerFactory>()
                .WithDeserializerFactory <IDeserializerFactory>());

            configuration.Driver.Should().BeOfType <BrokerIngressKafkaDriver>();
        }