Example #1
0
 public MockRecordMapper(
     IRecordFactory recordFactory,
     IFieldParser fieldParser = null,
     IFieldDisplayNameProvider fieldDisplayNameProvider = null,
     IFieldTransformer fieldTransformer = null)
     : base(recordFactory, fieldParser, fieldDisplayNameProvider, fieldTransformer)
 {
 }
Example #2
0
 public ObjectRecordMapper(
     IRecordFactory recordFactory,
     IFieldParser fieldParser = null,
     IFieldDisplayNameProvider fieldDisplayNameProvider = null,
     IFieldTransformer fieldTransformer = null,
     ISourceFieldNameProvider sourceFieldNameProvider = null)
     : base(recordFactory, fieldParser, fieldDisplayNameProvider, fieldTransformer)
 {
     this.SourceFieldNameProvider = sourceFieldNameProvider ?? new SourceFieldNameProvider();
 }
Example #3
0
 public FixedWidthBinaryRecordMapper(
     IRecordFactory recordFactory,
     IFieldParser fieldParser = null,
     IFieldDisplayNameProvider fieldDisplayNameProvider = null,
     IFieldTransformer fieldTransformer = null,
     ISourceFieldLayoutProvider sourceFieldLayoutProvider = null)
     : base(recordFactory, fieldParser ?? new BinaryFieldParser(), fieldDisplayNameProvider, fieldTransformer)
 {
     this.SourceFieldLayoutProvider = sourceFieldLayoutProvider ?? new SourceFieldLayoutProvider();
 }
Example #4
0
 public DelimitedTextRecordMapper(
     IRecordFactory recordFactory,
     string delimiter         = ",",
     IFieldParser fieldParser = null,
     IFieldDisplayNameProvider fieldDisplayNameProvider = null,
     IFieldTransformer fieldTransformer = null,
     ISourceRecordFieldCountProvider sourceRecordFieldCountProvider = null,
     ISourceFieldOrdinalProvider sourceFieldOrdinalProvider         = null)
     : base(recordFactory, fieldParser, fieldDisplayNameProvider, fieldTransformer)
 {
     this.Delimiter = delimiter;
     this.SourceRecordFieldCountProvider = sourceRecordFieldCountProvider ?? new SourceRecordFieldCountProvider();
     this.SourceFieldOrdinalProvider     = sourceFieldOrdinalProvider ?? new SourceFieldOrdinalProvider();
 }
Example #5
0
 public RecordMapper(IRecordFactory recordFactory, IFieldParser fieldParser = null, IFieldDisplayNameProvider fieldDisplayNameProvider = null, IFieldTransformer fieldTransformer = null)
 {
     this.RecordFactory            = recordFactory;
     this.FieldParser              = fieldParser ?? new FieldParser();
     this.FieldDisplayNameProvider = fieldDisplayNameProvider ?? new FieldDisplayNameProvider();
     this.FieldTransformer         = fieldTransformer ?? new FieldTransformer();
 }
 public DataAnnotatedRecordValidator(IFieldDisplayNameProvider fieldDisplayNameProvider = null)
 {
     this.FieldDisplayNameProvider = fieldDisplayNameProvider;
 }