internal static void Generate(TestRecords tests, DirectoryInfo ReportRoot) { DirectoryInfo areasDirectory = new DirectoryInfo(Path.Combine(ReportRoot.FullName, "AreaReports")); ReportingUtilities.CreateAreaReportsDirectories(areasDirectory); Dictionary <string, Dictionary <string, TestCollection> > areas = ReportingUtilities.GroupByArea(tests); foreach (KeyValuePair <string, Dictionary <string, TestCollection> > bucket in areas) { string area = bucket.Key; Dictionary <string, TestCollection> areaDictionary = bucket.Value; Generate(areaDictionary, areasDirectory.FullName, area); } }