Exemplo n.º 1
0
        public void Find_Prescriptions_With_Comment_Or_Medicaments_Searh_Parameter()
        {
            PrescriptionService         service             = new PrescriptionService(CreateStubRepository());
            Dictionary <string, string> parametersForSearch = new Dictionary <string, string>();
            List <string> logicOperators = new List <string>();

            parametersForSearch.Add("Sadržaju", "Redovno");
            parametersForSearch.Add("Lekovima", "Brufen");
            logicOperators.Add("ILI");

            List <Prescription> searchResult = service.FindPrescriptionsUsingAdvancedSearch(1, parametersForSearch, logicOperators);

            searchResult.ShouldNotBeEmpty();
        }
Exemplo n.º 2
0
        public void Find_Prescriptions_With_Doctor_And_Date_Searh_Parameter()
        {
            PrescriptionService         service             = new PrescriptionService(CreateStubRepository());
            Dictionary <string, string> parametersForSearch = new Dictionary <string, string>();
            List <string> logicOperators = new List <string>();

            parametersForSearch.Add("Doktoru", "Milan");
            parametersForSearch.Add("Datumu", "2020-10-05");
            logicOperators.Add("I");

            List <Prescription> searchResult = service.FindPrescriptionsUsingAdvancedSearch(1, parametersForSearch, logicOperators);

            searchResult.ShouldNotBeEmpty();
        }