Exemplo n.º 1
0
        public async Task CloudBlobClientGetAccountProperties()
        {
            CloudBlobClient client = GenerateCloudBlobClient();

            Shared.Protocol.AccountProperties result = await client.GetAccountPropertiesAsync();

            Assert.IsNotNull(result);

            Assert.IsNotNull(result.SkuName);

            Assert.IsNotNull(result.AccountKind);
        }
Exemplo n.º 2
0
        public async Task CloudBlobContainerGetAccountProperties()
        {
            CloudBlobContainer blobContainerWithSAS = GenerateRandomWriteOnlyBlobContainer();

            try
            {
                await blobContainerWithSAS.CreateAsync();

                Shared.Protocol.AccountProperties result = await blobContainerWithSAS.GetAccountPropertiesAsync();

                Assert.IsNotNull(result);

                Assert.IsNotNull(result.SkuName);

                Assert.IsNotNull(result.AccountKind);
            }
            finally
            {
                blobContainerWithSAS.DeleteIfExistsAsync().Wait();
            }
        }