public void Created_queue_has_correct_name(StaticQueueFactory sut, IModel model) { sut.CreateQueue(model); Mock.Get(model).Verify(p => p.QueueDeclare(sut.QueueName, It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <IDictionary <string, object> >())); }
public void Created_queue_is_not_auto_delete(StaticQueueFactory sut, IModel model) { sut.CreateQueue(model); Mock.Get(model).Verify(p => p.QueueDeclare(It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>(), false, It.IsAny <IDictionary <string, object> >())); }
public void Model_is_required_when_creating_a_queue(StaticQueueFactory sut) { Assert.Throws <ArgumentNullException>(() => sut.CreateQueue(null)); }