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); }
public Task ForwardCurrentMessageTo(string destination) { return(_ctx.ForwardCurrentMessageTo(destination)); }