private IComparer <TEntry1, TEntry2> BuildComparer(string[] headerCells1, string[] headerCells2) { var columnIndexes1 = columnMapBuilder.GetColumnIndexMap(headerCells1); var entry1Parser = entry1ParserFactory.Build(columnIndexes1); var columnIndexes2 = columnMapBuilder.GetColumnIndexMap(headerCells2); var entry2Parser = entry2ParserFactory.Build(columnIndexes2); return(comparerFactory.Build(entry1Parser, entry2Parser)); }
private CsvDocument TransformActual(CsvDocument document) { var columnIndexes = columnMapBuilder.GetColumnIndexMap(document.HeaderCells); var actualTransformer = factory.Build(columnIndexes); reporter.ReportStart(factory.Name); var result = transformerRunner.Transform(document, actualTransformer); reporter.ReportFinish(document, result); return(result); }