コード例 #1
0
        public void CustomHeader()
        {
            var          message = new OutboundMessage <Bar>(new Bar());
            const String key     = "a";
            const String value   = "b";

            message.AddHeader(key, value);

            Assert.True(message.ContainsHeader(key));
            Assert.Equal(value, message.Headers[key]);
        }