/// <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); }
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); }