/// <summary> /// For unit testing /// </summary> internal BulkObjectWriter(StreamWriter streamWriter, IBulkObjectFactory bulkObjectFactory, ICsvTextFormatter csvTextFormatter) { _streamWriter = streamWriter; _bulkObjectFactory = bulkObjectFactory; _formatter = csvTextFormatter; }
private void WriteFormat(List <string> entitiesPayload, ICsvTextFormatter formatter) { var versionRow = new RowValues(); versionRow[StringTable.Type] = StringTable.SemanticVersion; versionRow[StringTable.Name] = FormatVersion; entitiesPayload.Add(formatter.FormatCsvRow(versionRow.Columns)); }
private void WriteHeader(List <string> entitiesPayload, ICsvTextFormatter formatter) { entitiesPayload.Add(formatter.GetHeaders()); }