/// <summary> /// Delete the queue used for testing /// </summary> /// <param name="queueUrl"></param> /// <param name="encryptionContainerName"></param> public static void DeleteQueue(string queueUrl, string encryptionContainerName) { var createSqsQueueTask = new DeleteSQSQueueTask(new AwsClientFactory(), new NullLogger()) { QueueUrl = queueUrl, EncryptionContainerName = encryptionContainerName }; createSqsQueueTask.Execute(); Debug.WriteLine("Delted SQS Queue: " + createSqsQueueTask.QueueUrl); }
public void DeleteQueue_Should_DeleteQueue() { // Setup // TODO: Replace this with a mocked factory. IAwsClientFactory awsClientFactory = new AwsClientFactory(); ITaskLogger logger = new NullLogger(); // Create a queue to delete. string queueUrl = TestHelper.CreateQueue("TestQ", TestHelper.EncryptionContainerName); var task = new DeleteSQSQueueTask(awsClientFactory, logger) { QueueUrl = queueUrl, EncryptionContainerName = TestHelper.EncryptionContainerName }; // Execute bool suceeded = task.Execute(); // Test Assert.IsTrue(suceeded, "Did not suceed"); }