Example #1
0
 public MessageSendingTemplateTest()
 {
     template      = new TestMessageSendingTemplate();
     postProcessor = new TestMessagePostProcessor();
     headers       = new Dictionary <string, object>();
     headers.Add("key", "value");
 }
 public MessageRequestReplyTemplateTest()
 {
     template      = new TestMessagingTemplate();
     postProcessor = new TestMessagePostProcessor();
     headers       = new Dictionary <string, object>()
     {
         { "key", "value" }
     };
 }
Example #3
0
 public MessageSendingTemplateTest()
 {
     _template      = new TestMessageSendingTemplate();
     _postProcessor = new TestMessagePostProcessor();
     _headers       = new Dictionary <string, object>
     {
         { "key", "value" }
     };
 }
        public DestinationResolvingMessagingTemplateTest()
        {
            var resolver = new TestMessageChannelDestinationResolver();

            myChannel = new TaskSchedulerSubscribableChannel();
            resolver.RegisterMessageChannel("myChannel", myChannel);

            template = new TestDestinationResolvingMessagingTemplate();
            template.DestinationResolver = resolver;

            headers = new Dictionary <string, object>()
            {
                { "key", "value" }
            };

            postProcessor = new TestMessagePostProcessor();
        }