Exemple #1
0
        public async Task GetLearnerReportsAsync(int id, int year, bool success)
        {
            var req = new LearnerReportRequest()
            {
                Id   = id,
                Year = year,
            };
            ReportsService service = new ReportsService(timeRepo, reportMapper);
            var            result  = await service.GetLearnerReportsAsync(req);

            if (success)
            {
                result.ShouldNotBeEmpty();
            }
            else
            {
                result.ShouldBeEmpty();
            }
        }