public void Find_Reports_With_Comment_Or_Room_Searh_Parameter()
        {
            MedicalExaminationReportService service             = new MedicalExaminationReportService(CreateStubRepository());
            Dictionary <string, string>     parametersForSearch = new Dictionary <string, string>();
            List <string> logicOperators = new List <string>();

            parametersForSearch.Add("Sadržaju", "Sve je bilo uredu na pregledu");
            parametersForSearch.Add("Sobi", "101");
            logicOperators.Add("ILI");

            List <MedicalExaminationReport> searchResult = service.FindReportsUsingAdvancedSearch(1, parametersForSearch, logicOperators);

            searchResult.ShouldNotBeEmpty();
        }
        public void Find_Reports_With_Doctor_And_Date_Searh_Parameter()
        {
            MedicalExaminationReportService service             = new MedicalExaminationReportService(CreateStubRepository());
            Dictionary <string, string>     parametersForSearch = new Dictionary <string, string>();
            List <string> logicOperators = new List <string>();

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

            List <MedicalExaminationReport> searchResult = service.FindReportsUsingAdvancedSearch(1, parametersForSearch, logicOperators);

            searchResult.ShouldNotBeEmpty();
        }
        public void Find_Reports_With_Three_Searh_Parameters()
        {
            MedicalExaminationReportService service             = new MedicalExaminationReportService(CreateStubRepository());
            Dictionary <string, string>     parametersForSearch = new Dictionary <string, string>();
            List <string> logicOperators = new List <string>();

            parametersForSearch.Add("Doktoru", "Milan");
            parametersForSearch.Add("Sadržaju", "Pacijent je dobro");
            parametersForSearch.Add("Sobi", "301");
            logicOperators.Add("ILI");
            logicOperators.Add("ILI");

            List <MedicalExaminationReport> searchResult = service.FindReportsUsingAdvancedSearch(1, parametersForSearch, logicOperators);

            searchResult.ShouldNotBeEmpty();
        }