public async Task SendAsyncNoDestinationResolver()
 {
     var template = new TestDestinationResolvingMessagingTemplate();
     await Assert.ThrowsAsync <InvalidOperationException>(() => template.SendAsync("myChannel", new GenericMessage("payload")));
 }
        public Task SendAsyncNoDestinationResolver()
        {
            var template = new TestDestinationResolvingMessagingTemplate();

            return(Assert.ThrowsAsync <InvalidOperationException>(() => template.SendAsync("myChannel", Message.Create("payload"))));
        }