Example #1
0
        public void QueueDeleteNoWait_with_arguments_deletes_the_queue()
        {
            var node = new RabbitServer();

            using (var model = new FakeModel(node))
            {
                const string queueName = "someName";
                model.QueueDeclare(queueName, true, true, true, null);
                model.QueueDeleteNoWait(queueName, true, true);
                Assert.True(node.Queues.IsEmpty);
            }
        }
Example #2
0
        public void QueueDeleteNoWait_WithArguments_DeletesTheQueue()
        {
            // Arrange
            var node = new RabbitServer();

            using (var model = new FakeModel(node))
            {
                const string queueName = "someName";
                model.QueueDeclare(queueName, true, true, true, null);

                // Act
                model.QueueDeleteNoWait(queueName, true, true);

                // Assert
                Assert.True(node.Queues.IsEmpty);
            }
        }