Beispiel #1
0
        public void PublishStructureMainQueueTest()
        {
            var message = new MessageDataConcrete()
            {
                Prop0 = "unit test property one",
                Prop1 = "unit test property two"
            };

            Factory.Sender.publishStructureMessage("unit test action!", message);
        }
Beispiel #2
0
        public void PublishCustomExchangeTest()
        {
            Factory.GetSenderCustomExchange("customExchange1").publishMessage("queue1 unit test hello");

            var message = new MessageDataConcrete()
            {
                Prop0 = "unit test property one",
                Prop1 = "unit test property two"
            };

            Factory.GetSenderCustomExchange("customExchange1")
            .publishStructureMessage("exchange1 unit test hello", message);

            Factory.GetSenderCustomExchange("customExchange2")
            .publishMessage("queue2 unit test hello");
        }