Beispiel #1
0
        public void DeleteQueue_ReturnsFalseIfQueueDoesNotExist()
        {
            _queueConnectionProperties.QueueName = "foobar";
            var result = QueueTasks.DeleteQueueAsync(_queueConnectionProperties, _options, new CancellationToken());

            Assert.IsFalse(result.Result.Success);
        }
Beispiel #2
0
        public void DeleteQueue()
        {
            // create queue and check that it exists before delete test
            QueueTestHelpers.CreateQueue(_testClient, _createQueueName);
            Assert.IsTrue(QueueTestHelpers.QueueExists(_testClient, _createQueueName));

            var result = QueueTasks.DeleteQueueAsync(_queueConnectionProperties, _options, new CancellationToken());

            Assert.IsTrue(result.Result.Success);
            Assert.IsFalse(QueueTestHelpers.QueueExists(_testClient, _createQueueName));
        }