Esempio n. 1
0
        public void Find_No_Matching_Prescriptions()
        {
            PrescriptionService service = new PrescriptionService(CreateStubRepository());

            List <Prescription> foundPrescriptions = service.SimpleSearchPrescriptions(new PrescriptionSearchDto("", "False", "", ""));

            foundPrescriptions.ShouldBeEmpty();
        }
Esempio n. 2
0
        public void Find_Prescriptions_With_Empty_Search()
        {
            PrescriptionService service = new PrescriptionService(CreateStubRepository());

            List <Prescription> foundPrescriptions = service.SimpleSearchPrescriptions(new PrescriptionSearchDto("", "", "", ""));

            foundPrescriptions.ShouldNotBeEmpty();
        }
Esempio n. 3
0
        public void Find_Prescriptions()
        {
            PrescriptionService service = new PrescriptionService(CreateStubRepository());

            List <Prescription> foundPrescriptions = service.SimpleSearchPrescriptions(new PrescriptionSearchDto("Medicine Name", "", "Comment", ""));

            foundPrescriptions.ShouldHaveSingleItem();
        }