public async Task ReportContentIsCorrect()
        {
            var reportBuilder = new EmployeeReportBuilder(_employeeRepository, _departmentRepository);

            var report = await reportBuilder.BuildAsync(2011, 1);

            Assert.IsTrue(_reportExpected == report);
        }
Example #2
0
        public void ReportHasSuccessResult()
        {
            var report = new EmployeeReportBuilder(employeeReportDataProvider);

            var result = report.Build(2018, 5);

            Assert.IsTrue(result.Success);
            Assert.AreEqual(result.Name, "report.txt");
        }
Example #3
0
 public ReportController(EmployeeReportBuilder reportBuilder)
 {
     _reportBuilder = reportBuilder;
 }