public void WhenPublishExtensionWithNullBusEmptyMessageAndHeaders_ThenThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => MessageBusExtensions.Publish(default(IMessageBus <FooMessage>), Enumerable.Empty <FooMessage>(), new Dictionary <string, object>())); }
public void WhenPublishExtensionWithNullHeadersAndEmptyMessages_ThenThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => MessageBusExtensions.Publish( Mock.Of <IMessageBus <FooMessage> >(), Enumerable.Empty <FooMessage>(), default(IDictionary <string, object>))); }
public void WhenPublishExtensionOnNullBus_ThenThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => MessageBusExtensions.Publish(null, new FooMessage())); }
public void WhenPublishExtensionWithNullMessages_ThenThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => MessageBusExtensions.Publish(Mock.Of <IMessageBus <FooMessage> >(), default(IEnumerable <FooMessage>))); }
public void WhenPublishExtensionOnNullBusEmptyMessages_ThenThrowsArgumentNullException() { Assert.Throws <ArgumentNullException>(() => MessageBusExtensions.Publish <FooMessage>(null, Enumerable.Empty <FooMessage>())); }