Beispiel #1
0
        public static void Publish <TMessage>(this ITestConfigurator <IBusTestScenario> configurator, TMessage message)
            where TMessage : class
        {
            var actionConfigurator = new PublishTestActionConfigurator <IBusTestScenario, TMessage>(x => x.Bus, message);

            configurator.AddActionConfigurator(actionConfigurator);
        }
Beispiel #2
0
        public static void Send <TMessage>(this ITestConfigurator <IBusTestScenario> configurator, TMessage message)
            where TMessage : class
        {
            var actionConfigurator = new SendTestActionConfigurator <IBusTestScenario, TMessage>(x => x.SubjectSendEndpoint, message);

            configurator.AddActionConfigurator(actionConfigurator);
        }