public void IntegrationTestGetAndSetContainerAcl() { IBlobService blobService = new BlobService(StorageAccount.Name, StorageAccount.Key); // Create a container. bool createSucess = blobService.CreateContainer("test4"); Assert.IsTrue(createSucess, "The container was not created as expected."); // Check the ACL. ContainerAcl containerAcl1 = blobService.GetContainerAcl("test4"); Assert.AreEqual("private", containerAcl1.AccessLevel, "The returned ACL was not as expected."); // Set ACL to "blob" bool aclSuccess1 = blobService.SetContainerAcl("test4", new ContainerAcl("blob")); Assert.IsTrue(aclSuccess1, "The ACL set was not a success."); // Check the ACL. ContainerAcl containerAcl2 = blobService.GetContainerAcl("test4"); Assert.AreEqual("blob", containerAcl2.AccessLevel, "The returned ACL was not as expected."); // Set ACL to "container" bool aclSuccess2 = blobService.SetContainerAcl("test4", new ContainerAcl("container")); Assert.IsTrue(aclSuccess2, "The ACL set was not a success."); // Check the ACL. ContainerAcl containerAcl3 = blobService.GetContainerAcl("test4"); Assert.AreEqual("container", containerAcl3.AccessLevel, "The returned ACL was not as expected."); // Set ACL to "private" bool aclSuccess3 = blobService.SetContainerAcl("test4", new ContainerAcl("private")); Assert.IsTrue(aclSuccess3, "The ACL set was not a success."); // Check the ACL. ContainerAcl containerAcl4 = blobService.GetContainerAcl("test4"); Assert.AreEqual("private", containerAcl4.AccessLevel, "The returned ACL was not as expected."); // Now delete the container. bool deleteSuccess = blobService.DeleteContainer("test4"); Assert.IsTrue(deleteSuccess, "The container was not deleted as expected."); }