private static IValueSource valueSourceFor(IEnumerable <string> values, CsvData headers, IColumnMapping mapping) { var data = new CsvData(values); return(headers == null ? mapping.ValueSource(data) : mapping.ValueSource(data, headers)); }
public void SetUp() { theMapping = new TestCsvMapping(); theRawValues = new[] { "Test", "true", "1" }; theValues = theMapping.ValueSource(new CsvData(theRawValues)); }
public void SetUp() { theMapping = new TestCsvMapping(); theHeaders = new CsvData(new[] { "Count", "Flag", "Name" }); theRawValues = new CsvData(new[] { "1", "true", "Test" }); theValues = theMapping.ValueSource(theRawValues, theHeaders); }
public void SetUp() { theMapping = new MappingWithAliases(); theHeaders = new CsvData(new[] { "Count", "Flag", "SomethingElse" }); theRawValues = new CsvData(new[] { "1", "true", "Test" }); theValues = theMapping.ValueSource(theRawValues, theHeaders); }