public async Task ForwardCurrentMessageTo_ShouldContainDestinationsInForwardDestinations()
        {
            var context = new TestableMessageHandlerContext();

            await context.ForwardCurrentMessageTo("destination1");

            await context.ForwardCurrentMessageTo("destination2");

            Assert.Contains("destination1", context.ForwardedMessages);
            Assert.Contains("destination2", context.ForwardedMessages);
        }
示例#2
0
 public Task ForwardCurrentMessageTo(string destination)
 {
     return(_ctx.ForwardCurrentMessageTo(destination));
 }
        public async Task ForwardCurrentMessageTo_ShouldContainDestinationsInForwardDestinations()
        {
            var context = new TestableMessageHandlerContext();

            await context.ForwardCurrentMessageTo("destination1");
            await context.ForwardCurrentMessageTo("destination2");

            Assert.Contains("destination1", context.ForwardedMessages);
            Assert.Contains("destination2", context.ForwardedMessages);
        }