public static Validator FromConfiguration(ValidatorConfiguration configuration) { ConfigurationConvertor converter = new ConfigurationConvertor(configuration); ConvertedValidators converted = converter.Convert(); Validator validator = new Validator(); validator.SetColumnSeperator(converted.ColumnSeperator); validator.SetRowSeperator(converted.RowSeperator); validator.TransferConvertedColumns(converted); validator._hasHeaderRow = converted.HasHeaderRow; return(validator); }
public ConfigurationConvertor(ValidatorConfiguration fromConfig) { _fromConfig = fromConfig; _converted = new ConvertedValidators(); }