예제 #1
0
        public void CreateQueueTest()
        {
            //_queueConnectionProperties.QueueName = _createQueueName;
            var result = QueueTasks.CreateQueueAsync(_queueConnectionProperties, _options, new CancellationToken());

            Assert.IsTrue(result.Result.Success);
            Assert.IsTrue(QueueTestHelpers.QueueExists(_testClient, _createQueueName));
        }
예제 #2
0
        public void CreateQueue_ReturnsFalseIfQueueExists()
        {
            var resultSuccess = QueueTasks.CreateQueueAsync(_queueConnectionProperties, _options, new CancellationToken());
            var resultFails   = QueueTasks.CreateQueueAsync(_queueConnectionProperties, _options, new CancellationToken());

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