Example #1
0
        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();
        }
Example #2
0
        private static void CreateProcessRemoveFolders(string folderNameSuffix, int numberOfEmptyFolders)
        {
            IEnumerable <string> folderNames = ContainerManagerTests.CreateContainerFolderNames(folderNameSuffix, numberOfEmptyFolders);

            ContainerManagerTests.CreateContainerFoldersWithFiles(folderNames, ContainerManagerTests.processRemoveFolderMarkerFileList);
        }