public void Should_Disable_Static_Web_On_Container()
        {

            var provider = new CloudFilesProvider();
            //var cdnEnabledResponse = provider.EnableCDNOnContainer( containerName, true, identity: _testIdentity);

            provider.DisableStaticWebOnContainer(containerName, null, false, _testIdentity);
            var cdnContainerMetaDataResponse = provider.GetContainerMetaData(containerName, identity: _testIdentity);


            Assert.IsFalse(cdnContainerMetaDataResponse.ContainsKey("Web-Index"));
            Assert.IsFalse(cdnContainerMetaDataResponse.ContainsKey("Web-Error"));
            Assert.IsFalse(cdnContainerMetaDataResponse.ContainsKey("Web-Listings-Css"));
            Assert.IsFalse(cdnContainerMetaDataResponse.ContainsKey("Web-Listings"));

        }
        public void TestStaticWebOnContainer()
        {
            IObjectStorageProvider provider = new CloudFilesProvider(Bootstrapper.Settings.TestIdentity);
            string containerName = TestContainerPrefix + Path.GetRandomFileName();
            string objectName = Path.GetRandomFileName();
            string fileContents = "File contents!";

            ObjectStore result = provider.CreateContainer(containerName);
            Assert.AreEqual(ObjectStore.ContainerCreated, result);

            Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(fileContents));
            provider.CreateObject(containerName, stream, objectName);

            Dictionary<string, string> cdnHeaders = provider.EnableCDNOnContainer(containerName, false);
            Assert.IsNotNull(cdnHeaders);
            Console.WriteLine("CDN Headers");
            foreach (var pair in cdnHeaders)
                Console.WriteLine("    {0}: {1}", pair.Key, pair.Value);

            string index = objectName;
            string error = objectName;
            string css = objectName;
            provider.EnableStaticWebOnContainer(containerName, index: index, error: error, listing: false);

            provider.DisableStaticWebOnContainer(containerName);

            provider.DeleteContainer(containerName, deleteObjects: true);
        }