public async Task SetPropertiesAsync_StaticWebsite()
        {
            // Arrange
            DataLakeServiceClient     service    = GetServiceClient_SharedKey();
            DataLakeServiceProperties properties = await service.GetPropertiesAsync();

            DataLakeStaticWebsite originalStaticWebsite = properties.StaticWebsite;
            string errorDocument404Path     = "error/404.html";
            string defaultIndexDocumentPath = "index2.html";

            properties.StaticWebsite = new DataLakeStaticWebsite
            {
                Enabled = true,
                ErrorDocument404Path     = errorDocument404Path,
                DefaultIndexDocumentPath = defaultIndexDocumentPath
            };

            // Act
            await service.SetPropertiesAsync(properties);

            // Assert
            properties = await service.GetPropertiesAsync();

            Assert.IsTrue(properties.StaticWebsite.Enabled);
            Assert.AreEqual(errorDocument404Path, properties.StaticWebsite.ErrorDocument404Path);
            Assert.AreEqual(defaultIndexDocumentPath, properties.StaticWebsite.DefaultIndexDocumentPath);

            // Cleanup
            properties.StaticWebsite = originalStaticWebsite;
            await service.SetPropertiesAsync(properties);

            properties = await service.GetPropertiesAsync();

            Assert.AreEqual(originalStaticWebsite.Enabled, properties.StaticWebsite.Enabled);
            Assert.AreEqual(originalStaticWebsite.IndexDocument, properties.StaticWebsite.IndexDocument);
            Assert.AreEqual(originalStaticWebsite.ErrorDocument404Path, properties.StaticWebsite.ErrorDocument404Path);
            Assert.AreEqual(originalStaticWebsite.DefaultIndexDocumentPath, properties.StaticWebsite.DefaultIndexDocumentPath);
        }
        public async Task GetFileSystemsAsync_System()
        {
            // Arrange
            DataLakeServiceClient service = DataLakeClientBuilder.GetServiceClient_Hns();

            DataLakeServiceProperties properties = await service.GetPropertiesAsync();

            DataLakeStaticWebsite originalStaticWebsite = properties.StaticWebsite;
            string errorDocument404Path     = "error/404.html";
            string defaultIndexDocumentPath = "index2.html";

            properties.StaticWebsite = new DataLakeStaticWebsite
            {
                Enabled = true,
                ErrorDocument404Path     = errorDocument404Path,
                DefaultIndexDocumentPath = defaultIndexDocumentPath
            };

            // Act
            await service.SetPropertiesAsync(properties);

            // Act
            IList <FileSystemItem> fileSystems = await service.GetFileSystemsAsync(states : FileSystemStates.System).ToListAsync();

            FileSystemItem webFileSystemItem = fileSystems.Where(r => r.Name == "$web").FirstOrDefault();

            // Assert
            Assert.IsTrue(fileSystems.Count > 0);
            Assert.IsNotNull(webFileSystemItem);

            // Cleanup
            properties = await service.GetPropertiesAsync();

            properties.StaticWebsite = originalStaticWebsite;
            await service.SetPropertiesAsync(properties);
        }