Exemple #1
0
        public void can_try_getValue_ReplyTo_when_Replyto_set_in_message_extension()
        {
            var    msg     = CreateMessageWithReplyToExtension();
            var    headers = new ReadOnlyMsmqMessageHeaders(msg);
            object actual;

            Assert.IsTrue(headers.TryGetValue(nameof(headers.ReplyTo), out actual));
            Assert.AreEqual(new Uri("tibrv://localhost/ReadOnlyMsmq/MessageTests"), actual);
        }
Exemple #2
0
        public void can_try_getValue_ReplyTo_when_ResponseQueue_set_on_message()
        {
            var    msg     = CreateMessageWithResponseQueue();
            var    headers = new ReadOnlyMsmqMessageHeaders(msg);
            object actual;

            Assert.IsTrue(headers.TryGetValue(nameof(headers.ReplyTo), out actual));
            Assert.AreEqual(new Uri($"msmq+os://{Environment.MachineName}/private$/ReadOnlyMsmqMessageTests"), actual);
        }