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)); }
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)); }
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)); }