public void Export(IWriter writer, IQuoteFormatter formatter, DateTime start, DateTime end) { writer.ThrowIfNull("writer"); formatter.ThrowIfNull("formatter"); _formatter = formatter; DoExport(writer, start, end); }
public void Import(IReader reader, IQuoteFormatter formatter) { reader.ThrowIfNull("reader"); formatter.ThrowIfNull("formatter"); _formatter = formatter; DoImport(reader); }
public void Export(string exportFileName, DateTime start, DateTime end) { exportFileName.ThrowIfNull("exportFileName"); _formatter = new QuoteFormatter(); using (var writer = new CsvWriter(exportFileName)) { DoExport(writer, start, end); } }