private void CreateAndFillPathForTesting(string testSubFolder, IFileStorageProvider provider) { var testFolder = Path.Combine(baseFolderName, testSubFolder); provider.DeleteFolder(testFolder, recursive: true); // Put some files in each of the paths var subFolderList = new List <string> { Path.Combine(testSubFolder, "nested-folder2a", "nested-folder3"), Path.Combine(testSubFolder, "nested-folder2a"), Path.Combine(testSubFolder, "nested-folder2b"), testSubFolder }; foreach (var subFolder in subFolderList) { for (var x = 1; x <= 3; x++) { var file = GetTestFso(subFolder); provider.Store(GetTestFileBytes(file.FullName), file); } } }
private void CreateAndFillPathForTesting(string testSubFolder, IFileStorageProvider provider) { var testFolder = Path.Combine(baseFolderName, testSubFolder); provider.DeleteFolder(testFolder, recursive: true); // Put some files in each of the paths var subFolderList = new List<string> { Path.Combine(testSubFolder, "nested-folder2a", "nested-folder3"), Path.Combine(testSubFolder, "nested-folder2a"), Path.Combine(testSubFolder, "nested-folder2b"), testSubFolder }; foreach (var subFolder in subFolderList) { for (var x = 1; x <= 3; x++) { var file = GetTestFso(subFolder); provider.Store(GetTestFileBytes(file.FullName), file); } } }