public async Task CreateContainerAsync_AlreadyExists_ThrowsContainerAlreadyExistsException() { var containerName = GenerateSampleContainerName(); CreateContainer(containerName); IBlobServiceClient client = new BlobServiceClient(AccountSettings); await client.CreateContainerAsync(containerName, ContainerAccessType.None); // expects exception }
public async Task CreateContainerAsync_ValidArguments_CreatesContainerWithSpecificName() { var containerName = GenerateSampleContainerName(); IBlobServiceClient client = new BlobServiceClient(AccountSettings); await client.CreateContainerAsync(containerName, ContainerAccessType.None); AssertContainerExists(containerName); }