public void QueueDeclare_WithIModel_InvokesQueueDeclareFromModel() { modelMocker.Setup(o => o.QueueDeclare( It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <IDictionary <string, object> >())) .Returns(queueDeclareOk); RentService sut = GetSut(); sut.QueueDeclare(modelMocker.Object); modelMocker.Verify(o => o.QueueDeclare( It.IsAny <string>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <bool>(), It.IsAny <IDictionary <string, object> >()), Times.Once); }