public FixedWidthFileWriterTests() { var logic = new PrimitiveTypeExpectations(); rows = logic.GetExpectedRows(); layout = logic.GetLayout(); }
public FixedWidthFileWriter(IFlatFileLayoutDescriptor <T> layout, string filePath) { this.layout = layout; this.filePath = filePath; if (layout.GetOrderedFields() .Any(x => x.TypeConverter == null)) { throw new ArgumentException("Missing TypeConverter for one or more fields", nameof(layout)); } }
public DummyFixedWidthFileParser(IFlatFileLayoutDescriptor <TEntity> layout) { this.layout = layout; }
private void WriteTestFile(ICollection <PrimitiveTypesModel> rows, IFlatFileLayoutDescriptor <PrimitiveTypesModel> layout) { var writer = new FixedWidthFileWriter <PrimitiveTypesModel>(layout, GetOutputFilePath()); writer.WriteFile(rows); }
public ExpressionTests() { settings = GetTestLayoutDescriptor(); }