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

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

            Assert.IsTrue(_reportExpected == report);
        }
Exemplo n.º 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");
        }
Exemplo n.º 3
0
 public ReportController(EmployeeReportBuilder reportBuilder)
 {
     _reportBuilder = reportBuilder;
 }