public void SendCommandThrows_ArgumentNullException_WhenQueueNameIsNull()
        {
            var exception = Should.Throw <ArgumentNullException>(() =>
                                                                 _sut.SendCommandAsync <string>(new object(), null, Key, Timeout));

            exception.ParamName.ShouldBe(QueueNameParamName);
        }
Exemplo n.º 2
0
        public async Task SendCommandCallsBasicPublishWithCorrectParameters()
        {
            await _sut.SendCommandAsync <string>(Message, QueueName, Key, ExchangeName);

            _busProviderMock.VerifyAll();
        }