public async Task GetQueueACLAync_NonexistentQueue_ThrowsQueueNotFoundException() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); var result = await client.GetQueueACLAsync(queueName); // expects exception }
public async Task GetQueueACLAsync_HasAccessPolicies_ReturnsListConstainingThosePolicies() { IQueueServiceClient client = new QueueServiceClient(_accountSettings); var queueName = GenerateSampleQueueName(); _util.CreateQueue(queueName); string expectedId = "abc-123"; DateTime expectedStart = _util.GetTruncatedUtcNow(); _util.AddAccessPolicy(queueName, expectedId, expectedStart, expectedStart.AddDays(1)); var result = await client.GetQueueACLAsync(queueName); Assert.IsNotEmpty(result.SignedIdentifiers); }