예제 #1
0
        public void QueueDeclareoWait_creates_a_queue()
        {
            var server = new RabbitServer();

            using (var model = new FakeModel(server))
            {
                const string queueName    = "someQueue";
                const bool   isDurable    = true;
                const bool   isExclusive  = true;
                const bool   isAutoDelete = false;
                var          arguments    = new Dictionary <string, object>();

                model.QueueDeclareNoWait(queue: queueName, durable: isDurable, exclusive: isExclusive, autoDelete: isAutoDelete, arguments: arguments);
                Assert.Single(server.Queues);

                var queue = server.Queues.First();
                AssertEx.AssertQueueDetails(queue, queueName, isAutoDelete, arguments, isDurable, isExclusive);
            }
        }