Ejemplo n.º 1
0
        public async Task GetPreceptorReportsAsync(int id, int year, bool success)
        {
            var req = new PreceptorReportRequest()
            {
                Id   = id,
                Year = year,
            };
            ReportsService service = new ReportsService(timeRepo, reportMapper);
            var            result  = await service.GetPreceptorReportsAsync(req);

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