public CsvExportController( IProductGenerator productGenerator, ICsvExport csvExport, IProductComparerExportService productComparerExportService, IProductAnalyticsExportService productAnalyticsExportService) { _productGenerator = productGenerator; _csvExport = csvExport; _productComparerExportService = productComparerExportService; _productAnalyticsExportService = productAnalyticsExportService; }
public void Write(ICsvExport csv) { if (this.IsExportHeader) { this.AddRow(csv.GetHeader()); this.Write(this.NewLine); } foreach (var row in csv.GetRows()) { //for performance reason, not to call AddRowAndNewLine. this.AddRow(row); this.Write(this.NewLine); } }
public RunnerService( IConfigurationDisplayService configurationDisplayService, IGitInformationConverter gitInformationConverter, IGitVersionConverter gitVersionConverter, IGitVersionExtractor gitVersionExtractor, IGitLogExtractor gitLogExtractor, ICsvExport csvExport, ITicketConsoleExport ticketConsoleExport, ILogger logger) { this.configurationDisplayService = configurationDisplayService; this.gitInformationConverter = gitInformationConverter; this.gitVersionConverter = gitVersionConverter; this.gitVersionExtractor = gitVersionExtractor; this.gitLogExtractor = gitLogExtractor; this.csvExport = csvExport; this.ticketConsoleExport = ticketConsoleExport; this.logger = logger; }