Example #1
0
        public static void IsUsableOnIncoming_ShouldBeTrue(string headerPrefix)
        {
            var standardHeaderOptions = new DefaultStandardHeaderOptions(headerPrefix);
            var transportMessage      = GetTransportMessage(headerPrefix);

            StandardAdapter.IsUsableOnIncoming(transportMessage, standardHeaderOptions).Should().BeTrue();
        }
Example #2
0
        public static void IsUsableOnIncoming_ShouldBeFalse(string headerPrefix)
        {
            var standardHeaderOptions = new DefaultStandardHeaderOptions(headerPrefix);
            var rebusHeaders          = new Dictionary <string, string>();

            rebusHeaders[Headers.MessageId] = Guid.NewGuid().ToString();
            var transportMessage = new TransportMessage(rebusHeaders, new byte[0]);

            StandardAdapter.IsUsableOnIncoming(transportMessage, standardHeaderOptions).Should().BeFalse();
        }