public ReportComposer(IReport report, IDocumentFormatter docFormattter, IReportPrinter reportPrinter) { report.formatDocumet(); string data = report.getData(); reportPrinter.printReport(data); }
public void CompileReport(IReportPrinter myReportPrinter) { var employees = new List <Employee>(); Employee employee; _employeeDb.Reset(); // Get all employees while ((employee = _employeeDb.GetNextEmployee()) != null) { employees.Add(employee); } myReportPrinter.printReport(employees); }
public void ComposeReport() { string data = _documentFormatter.formatDocument(_dataGetter.getData()); _reportPrinter.printReport(data); }