Exemple #1
0
        public void SearchTest()
        {
            PartialViewResult rv = (PartialViewResult)_controller.Index();

            Assert.IsInstanceOfType(rv.Model, typeof(IBasePagedListVM <TopBasePoco, BaseSearcher>));
            string rv2 = _controller.Search(rv.Model as HospitalListVM);

            Assert.IsTrue(rv2.Contains("\"Code\":200"));
        }