public void test_getall_serach()
 {
     SearchDoctorController sdoc = new SearchDoctorController();
     param_getall           par  = new param_getall {
         doctor_name = "AAKALU"
     };
     dynamic res = sdoc.get_allsearch(par);
 }
Пример #2
0
        public void testdirectory_all(string city, bool recent, bool success)
        {
            SearchDoctorController sd  = new SearchDoctorController();
            param_directory        par = new param_directory {
                is_date = recent, letter = city
            };

            dynamic res = sd.getDirectory(par);

            Assert.AreEqual(res.Content.success, success);
        }
Пример #3
0
        public void test_specialty()
        {
            SearchDoctorController sd = new SearchDoctorController();

            param_getall all = new param_getall();
            //all.city = "Alexandria, VA";

            dynamic res = sd.get_allsearch(all);

            Assert.AreEqual(res.Content.success, true);
        }
Пример #4
0
        //[ExpectedException("Exception")]
        public void testSearchDoctor_latlong(double lat, double longi, bool success)
        {
            SearchDoctorController sd = new SearchDoctorController();

            Models.doc_search_query par = new Models.doc_search_query();
            par.lat = lat; par.longi = longi; //par.specialty = 3;


            dynamic res = sd.getDoctor_search(par);

            Console.WriteLine(res.Content.message);
            Assert.AreEqual(res.Content.success, success);
        }
Пример #5
0
        public void testSearchDoctor_noparam()
        {
            SearchDoctorController sd = new SearchDoctorController();

            Models.doc_search_query par = new Models.doc_search_query();
            //par.lat = 38.755769; par.longi = -77.085389; //par.specialty = 3;
            //par.city = "Ann Arbor";

            dynamic res = sd.getDoctor_search(par);

            Console.WriteLine(res.Content.message);
            Assert.AreEqual(res.Content.success, false);
        }
Пример #6
0
        public void testSearchDoctor_zip(string zip, bool success)
        {
            SearchDoctorController sd = new SearchDoctorController();

            Models.doc_search_query par = new Models.doc_search_query();
            //par.lat = 38.755769; par.longi = -77.085389;
            par.zipcode = zip; //par.specialty = 3;


            dynamic res = sd.getDoctor_search(par);

            //  Console.WriteLine(res.data);
            Assert.AreEqual(res.Content.success, success);
        }
Пример #7
0
        public void testSearchDoctor_state(string state, bool success)
        {
            SearchDoctorController sd = new SearchDoctorController();

            Models.doc_search_query par = new Models.doc_search_query();
            par.lat   = 38.755769; par.longi = -77.085389;
            par.state = state; //par.specialty = 3;


            dynamic res = sd.getDoctor_search(par);

            Console.WriteLine(res.Content.message);
            Assert.AreEqual(res.Content.success, success);
        }
Пример #8
0
        public void get_doctors(double lat, double longi, bool success)
        {
            SearchDoctorController sd = new SearchDoctorController();

            var data = new doc_search_mobile()
            {
                lat   = lat,
                longi = longi
            };

            dynamic res = sd.getDoctor_search_mobile(data);

            Console.WriteLine(res.Content.message);

            Assert.AreEqual(res.Content.success, success);
        }
Пример #9
0
        public void testSearchDoctor(string city, bool success)
        {
            SearchDoctorController sd = new SearchDoctorController();

            Models.doc_search_query par = new Models.doc_search_query();
            par.city = city; //par.specialty = 3;

            System.Web.HttpContext.Current = new System.Web.HttpContext(new System.Web.HttpRequest(null, "http://localhost", null), new System.Web.HttpResponse(null));
            System.Web.Http.Controllers.HttpControllerContext controllerContext = new System.Web.Http.Controllers.HttpControllerContext();
            controllerContext.Request = new HttpRequestMessage();

            dynamic res = sd.getDoctor_search(par);

            Console.WriteLine(res.Content.message);
            Assert.AreEqual(res.Content.success, success);
        }
Пример #10
0
        public void modile_doctor_search_loguser(double lat, double longi, string search, long insurance_id, bool success)
        {
            SearchDoctorController sd = new SearchDoctorController();

            var data = new doc_search_mobile_loguser()
            {
                lat          = lat,
                longi        = longi,
                search       = search,
                insurance_id = insurance_id
            };

            dynamic res = sd.getDoctor_search_mobile_loguser(data);

            Console.WriteLine(res.Content.message);

            Assert.AreEqual(res.Content.success, success);
        }
        public void doctor_city_state()
        {
            SearchDoctorController sdoc = new SearchDoctorController();

            dynamic res = sdoc.getDoctor_states();
        }