public void Should_be_able_to_create_a_queue()
 {
     var vhost = managementClient.GetVhost("/");
     var queueInfo = new QueueInfo(testQueue);
     var queue = managementClient.CreateQueue(queueInfo, vhost);
     queue.Name.ShouldEqual(testQueue);
 }
 public void Should_be_able_to_create_a_queue_with_arguments()
 {
     var exchangeName = "test-dead-letter-exchange";
     var argumentKey = "x-dead-letter-exchange";
     var vhost = managementClient.GetVhost("/");
     var queueInfo = new QueueInfo(testQueue);
     queueInfo.Arguments.Add(argumentKey, exchangeName);
     var queue = managementClient.CreateQueue(queueInfo, vhost);
     queue.Arguments[argumentKey].ShouldNotBeNull();
     queue.Arguments[argumentKey].ShouldEqual(exchangeName);
 }
 private Queue CreateTestQueue(string queueName)
 {
     var vhost = managementClient.GetVhost(vhostName);
     var queueInfo = new QueueInfo(queueName);
     managementClient.CreateQueue(queueInfo, vhost);
     return managementClient.GetQueue(queueName, vhost);
 }
 public void Should_be_able_to_create_a_queue_with_plus_char_in_the_name()
 {
     var vhost = managementClient.GetVhost(vhostName);
     var queueInfo = new QueueInfo(testQueueWithPlusChar);
     var queue = managementClient.CreateQueue(queueInfo, vhost);
     queue.Name.ShouldEqual(testQueueWithPlusChar);
 }