Ejemplo n.º 1
0
        public void When_folder_is_analyzed()
        {
            FolderAnalyzer analyzer = new FolderAnalyzer();

            CreateFiles();

            var temp = analyzer.Analyze("TestFolders");

            var test = "temo";
        }
Ejemplo n.º 2
0
        public void Run(string[] args)
        {
            UserVariables userVars      = new ArgumentsParser(args).ParseArguments();
            UserVariables validatedVars = new UserVariablesValidator(userVars).Validate();

            validatedVars.Print();

            var fileNamePool    = new WikiAnalyzer(validatedVars).Analyze();
            var fileSystemFiles = new FolderAnalyzer(validatedVars.Folder).Analyze();

            Dictionary <string, string> renaming = new FileMatcher(fileNamePool, fileSystemFiles).Match();

            new Renamer(renaming).Rename();

            Console.WriteLine("Pres Any Key to Exit...");
            Console.ReadKey();
        }