private static void CreateAndKeepRemoveFolderHeld(string folderName, TimeSpan timeToHold) { ContainerManagerTests.CreateContainerFoldersWithFiles(new string[] { folderName }, emptyFolderMarkerFilesList); StreamWriter fileHolder = File.CreateText(Path.Combine(mockContainerEnvironment.Object.ContainerLogRootDirectory, folderName, ContainerEnvironment.ContainerRemoveLogMarkerFileName)); Thread.Sleep((int)timeToHold.TotalMilliseconds); fileHolder.Dispose(); }
private static void CreateProcessRemoveFolders(string folderNameSuffix, int numberOfEmptyFolders) { IEnumerable <string> folderNames = ContainerManagerTests.CreateContainerFolderNames(folderNameSuffix, numberOfEmptyFolders); ContainerManagerTests.CreateContainerFoldersWithFiles(folderNames, ContainerManagerTests.processRemoveFolderMarkerFileList); }