public async Task ReportContentIsCorrect() { var reportBuilder = new EmployeeReportBuilder(_employeeRepository, _departmentRepository); var report = await reportBuilder.BuildAsync(2011, 1); Assert.IsTrue(_reportExpected == report); }
public void ReportHasSuccessResult() { var report = new EmployeeReportBuilder(employeeReportDataProvider); var result = report.Build(2018, 5); Assert.IsTrue(result.Success); Assert.AreEqual(result.Name, "report.txt"); }
public ReportController(EmployeeReportBuilder reportBuilder) { _reportBuilder = reportBuilder; }