private static void BlogEngine(string categories, string folder, string destination) { var formatter = new BlogEngineFormatter(); foreach (string file in Directory.GetFiles(folder, "*.xml")) { formatter.Format(file, destination, categories); } }