public void Dont_find_searched_prescription() { PrescriptionSearchService service = new PrescriptionSearchService(CreatePrescriptionStubRepository(), CreateUserGateway()); List <Prescription> prescriptions = service.GetSearchedPrescription("Brufen", 6, new DateTime(2020, 11, 24), new DateTime(2020, 11, 25)).ToList(); prescriptions.FirstOrDefault().ShouldBeNull(); }
public void Advanced_prescription_found() { var stubRepository = CreateStubRepository(); PrescriptionAdvancedDTO dto = CreateDTO(); PrescriptionSearchService service = new PrescriptionSearchService(stubRepository, CreateUserGateway()); List <Prescription> prescriptions = service.AdvancedSearchPrescriptions(dto); prescriptions.ShouldNotBeEmpty(); }