public void ProcessData(string inOib) { try { Person person = _repository.GetPersonByOib(inOib); _printer.PrintReport(person); } catch (PersonDoesNotExistException e) { throw; } }
public void PrintReport(string reportType, ReportDto report) { if (reportType.ToLower() == "j") { SetStrategy(new ReportPrintToJson()); } else if (reportType.ToLower() == "t") { SetStrategy(new ReportPrintToTxt()); } else if (reportType.ToLower() == "c") { SetStrategy(new ConsoleReportPrinter()); } else { throw new Exception("There is no such export option!"); } _reportPrinter.PrintReport(report); }
public void PrintReport(string report) => reportPrinter.PrintReport(report);
public void CompileReport() { var output = _currentFormatter.OutputFormat(_employeeReport.GetEmployees()); _currentPrinter.PrintReport(output); }
public void Cos() { formater.FormatDocument(document); printer.PrintReport(document); }