コード例 #1
0
        /// <summary>
        /// For unit testing
        /// </summary>
        internal BulkObjectWriter(StreamWriter streamWriter, IBulkObjectFactory bulkObjectFactory, ICsvTextFormatter csvTextFormatter)
        {
            _streamWriter = streamWriter;

            _bulkObjectFactory = bulkObjectFactory;

            _formatter = csvTextFormatter;
        }
コード例 #2
0
        /// <summary>
        /// For unit testing
        /// </summary>
        internal BulkObjectWriter(StreamWriter streamWriter, IBulkObjectFactory bulkObjectFactory, ICsvTextFormatter csvTextFormatter)
        {
            _streamWriter = streamWriter;

            _bulkObjectFactory = bulkObjectFactory;

            _formatter = csvTextFormatter;
        }
コード例 #3
0
        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));
        }
コード例 #4
0
 private void WriteHeader(List <string> entitiesPayload, ICsvTextFormatter formatter)
 {
     entitiesPayload.Add(formatter.GetHeaders());
 }