public static ConsumerTestFactoryImpl <BusTestScenario, TConsumer> InSingleBusScenario <TScenario, TConsumer>( this ConsumerTestFactory <TScenario, TConsumer> factory) where TScenario : TestScenario where TConsumer : class { return(new ConsumerTestFactoryImpl <BusTestScenario, TConsumer>(LoopbackBus)); }
public static IConsumerTestFactory <IBusTestScenario, TConsumer> ForConsumer <TConsumer>() where TConsumer : class, IConsumer { var factory = new ConsumerTestFactory <IBusTestScenario, TConsumer>(() => new LoopbackBusScenarioBuilder()); return(factory); }
public static ConsumerTestFactoryImpl <LocalRemoteTestScenario, TConsumer> InLocalRemoteBusScenario <TScenario, TConsumer> ( this ConsumerTestFactory <TScenario, TConsumer> factory) where TScenario : TestScenario where TConsumer : class { return(new ConsumerTestFactoryImpl <LocalRemoteTestScenario, TConsumer>(LoopbackLocalRemote)); }