Пример #1
0
        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> >()));
        }
Пример #2
0
        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> >()));
        }
Пример #3
0
 public void Model_is_required_when_creating_a_queue(StaticQueueFactory sut)
 {
     Assert.Throws <ArgumentNullException>(() => sut.CreateQueue(null));
 }