コード例 #1
0
        public void Created_queue_has_no_name(TemporaryQueueFactory sut, IModel model)
        {
            sut.CreateQueue(model);

            Mock.Get(model).Verify(p => p.QueueDeclare(string.Empty, It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <IDictionary <string, object> >()));
        }
コード例 #2
0
        public void Created_queue_is_auto_delete(TemporaryQueueFactory sut, IModel model)
        {
            sut.CreateQueue(model);

            Mock.Get(model).Verify(p => p.QueueDeclare(It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>(), true, It.IsAny <IDictionary <string, object> >()));
        }
コード例 #3
0
 public void Model_is_required_when_creating_a_queue(TemporaryQueueFactory sut)
 {
     Assert.Throws <ArgumentNullException>(() => sut.CreateQueue(null));
 }