public async Task DeleteContainerAsync_WrongLeaseForLeasedContainer_ThrowsLeaseIdMismatchException() { IBlobServiceClient client = new BlobServiceClient(AccountSettings); var containerName = GenerateSampleContainerName(); CreateContainer(containerName); LeaseContainer(containerName, null, null); await client.DeleteContainerAsync(containerName, FakeLeaseId); AssertContainerDoesNotExist(containerName); }
public async Task DeleteContainerAsync_ValidContainer_DeletesTheContainer() { IBlobServiceClient client = new BlobServiceClient(AccountSettings); var containerName = GenerateSampleContainerName(); CreateContainer(containerName); await client.DeleteContainerAsync(containerName); AssertContainerDoesNotExist(containerName); }