public void DeleteFolderShouldDeleteFilesAlso() { _azureBlobStorageProvider.CreateFile("folder/foo1.txt"); _azureBlobStorageProvider.CreateFile("folder/foo2.txt"); _azureBlobStorageProvider.CreateFile("folder/folder/foo1.txt"); _azureBlobStorageProvider.CreateFile("folder/folder/foo2.txt"); Assert.AreEqual(2, _azureBlobStorageProvider.ListFiles("folder").Count()); Assert.AreEqual(2, _azureBlobStorageProvider.ListFiles("folder/folder").Count()); _azureBlobStorageProvider.DeleteFolder("folder"); Assert.AreEqual(0, _azureBlobStorageProvider.ListFiles("folder").Count()); Assert.AreEqual(0, _azureBlobStorageProvider.ListFiles("folder/folder").Count()); }
void IIndexProvider.DeleteIndex(string name) { _fileSystem.DeleteFolder(name); }