public void DeleteContainer_WrongLeaseForLeasedContainer_ThrowsLeaseIdMismatchException()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();
            CreateContainer(containerName);
            LeaseContainer(containerName, null, null);

            client.DeleteContainer(containerName, FakeLeaseId);

            AssertContainerDoesNotExist(containerName);
        }
        public void DeleteContainer_LeaseForNonLeasedContainer_ThrowsLeaseNotPresentException()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();
            CreateContainer(containerName);

            client.DeleteContainer(containerName, FakeLeaseId);

            AssertContainerDoesNotExist(containerName);
        }
        public void DeleteContainer_LeaseForLeasedContainer_DeletesContainer()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();
            CreateContainer(containerName);
            var leaseId = LeaseContainer(containerName, null, null);

            client.DeleteContainer(containerName, leaseId);

            AssertContainerDoesNotExist(containerName);
        }
        public void DeleteContainer_NonExistentContainer_ThrowsContainerNotFoundException()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();

            client.DeleteContainer(containerName);

            AssertContainerDoesNotExist(containerName);
        }
        public void DeleteContainer_ValidContainer_DeletesTheContainer()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();
            CreateContainer(containerName);

            client.DeleteContainer(containerName);

            AssertContainerDoesNotExist(containerName);
        }