Exemple #1
0
        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);
        }
Exemple #2
0
 public ConfigurationConvertor(ValidatorConfiguration fromConfig)
 {
     _fromConfig = fromConfig;
     _converted  = new ConvertedValidators();
 }