public void LeaseContainerChange_NonexistentContainer_ThrowsContainerNotFoundException()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();
            var expectedLeaseId = Guid.NewGuid().ToString();

            client.LeaseContainerChange(containerName, FakeLeaseId, expectedLeaseId);

            // expects exception
        }
        public void LeaseContainerChange_LeasedContainerToNewLeaseId_ChangesToMatchNewLeaseId()
        {
            IBlobServiceClient client = new BlobServiceClient(AccountSettings);
            var containerName = GenerateSampleContainerName();
            CreateContainer(containerName);
            string leaseId = LeaseContainer(containerName, null, null);
            string expectedLeaseId = Guid.NewGuid().ToString();

            var response = client.LeaseContainerChange(containerName, leaseId, expectedLeaseId);

            Assert.AreEqual(expectedLeaseId, response.LeaseId);
            AssertContainerIsLeased(containerName, expectedLeaseId);
            RegisterContainerForCleanup(containerName, expectedLeaseId);
        }