public void Dont_find_searched_report() { ReportSearchService service = new ReportSearchService(CreateReportStubRepository(), CreateUserGateway()); List <Report> reports = service.GetSearchedReports("Petar", new DateTime(2020, 11, 24), new DateTime(2020, 11, 25), "Examination").ToList(); reports.FirstOrDefault().ShouldBeNull(); }
public void Doesnt_get_report_for_appointment() { var stubRepository = CreateStubRepository(); var userGateway = CreateUserGateway(); ReportSearchService service = new ReportSearchService(stubRepository, userGateway); Report report = service.GetReportForAppointment(new DateTime(2020, 12, 3), "2406978890547", "2406978890046"); report.ShouldBeNull(); }
public void Advanced_report_found() { var stubRepository = CreateStubRepository(); ReportAdvancedDTO dto = CreateDTO(); ReportSearchService service = new ReportSearchService(stubRepository, CreateUserGateway()); List <Report> reports = service.AdvancedSearchReports(dto); reports.ShouldNotBeEmpty(); }