Exemple #1
0
 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));
 }
Exemple #2
0
        public static IConsumerTestFactory <IBusTestScenario, TConsumer> ForConsumer <TConsumer>()
            where TConsumer : class, IConsumer
        {
            var factory = new ConsumerTestFactory <IBusTestScenario, TConsumer>(() => new LoopbackBusScenarioBuilder());

            return(factory);
        }
Exemple #3
0
 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));
 }