protected void AddCommandContext <TConsumer, T>(IConsumerFactory <TConsumer> consumerFactory, Action <IConsumerConfigurator <TConsumer> > configure = null)
            where T : class
            where TConsumer : class, IConsumer <T>
        {
            var context = new DispatchTestContext <TConsumer, T>(BaseAddress, consumerFactory, configure);

            CommandTestContexts.Add(typeof(T), context);
        }
Exemple #2
0
        protected void AddCommandContext <TConsumer, T>(Func <TConsumer> consumerFactory)
            where T : class
            where TConsumer : class, Consumes <T> .Context
        {
            var context = new DispatchTestContext <TConsumer, T>(BaseUri, consumerFactory);

            CommandTestContexts.Add(typeof(T), context);
        }