/// <inheritdoc />
        void IBrokerIngressDriverConfigurator.SetDriver(IBrokerIngressDriver driver, IMessageRouterConfigurationPart configuration)
        {
            if (_configuration.Driver != null)
            {
                throw new PoezdConfigurationException(
                          "It's not allowed to set driver on broker ingress more than once. Inspect your message " +
                          "router configuration and eliminate excess calls to WithXXXDriver.");
            }

            _configuration.Driver = driver ?? throw new ArgumentNullException(nameof(driver));
            _configuration.DriverConfiguration = configuration ?? throw new ArgumentNullException(nameof(configuration));
        }
        public static BrokerIngressConfigurator WithSpecificDriver(this BrokerIngressConfigurator ingress, IBrokerIngressDriver driver)
        {
            IBrokerIngressDriverConfigurator driverConfigurator = ingress;

            driverConfigurator.SetDriver(driver, Mock.Of <IMessageRouterConfigurationPart>());
            return(ingress);
        }