Esempio n. 1
0
        /// <summary>
        /// Sets the concurrent consumer limit for the <see cref="BusTestScenario"/> that is
        /// under test.
        /// </summary>
        /// <param name="configurator">The configurator passed from the XXXTestFactory interfaces' "New(HandlerTestInstanceConfigurator{TScenario,TMessage})" method.</param>
        /// <param name="value">The value for this setting.</param>
        public static void SetConcurrentConsumerLimit(this ScenarioConfigurator <BusTestScenario> configurator, int value)
        {
            var scenarioConfigurator =
                new BusTestScenarioBuilderConfiguratorImpl(x => x.SetConcurrentConsumerLimit(value));

            configurator.AddConfigurator(scenarioConfigurator);
        }
Esempio n. 2
0
        public static void AddTransportFactory <TTransportFactory>(this ScenarioConfigurator <BusTestScenario> configurator)
            where TTransportFactory : ITransportFactory, new()
        {
            var endpointFactoryConfigurator =
                new EndpointTestScenarioBuilderConfiguratorImpl <BusTestScenario>(x => x.AddTransportFactory <TTransportFactory>());

            configurator.AddConfigurator(endpointFactoryConfigurator);
        }