private void SendMessages(params RequestMessage[] messages)
 {
     _subject.SendMessagesAsync(messages, _messageEncoderSettings, CancellationToken.None).Wait();
 }
예제 #2
0
        public void SendMessagesAsync_should_throw_an_ArgumentNullException_if_messages_is_null()
        {
            Action act = () => _subject.SendMessagesAsync(null, _messageEncoderSettings, CancellationToken.None).Wait();

            act.ShouldThrow <ArgumentNullException>();
        }
예제 #3
0
        public void SendMessagesAsync_should_throw_an_ArgumentNullException_if_messages_is_null()
        {
            Action act = () => _subject.SendMessagesAsync(null, Timeout.InfiniteTimeSpan, CancellationToken.None).Wait();

            act.ShouldThrow <ArgumentNullException>();
        }