public void LocationResListTest() { //arrange Restaurants r = new Restaurants(); //act DataSet ds = r.LocationResList("toronto"); //assert DataRow[] dr = ds.Tables[0].Select("[LC_Name] = '%toronto%'"); Assert.AreEqual(1, dr.Length); }
private void FillPageListView() { if (searchStr != "") { Repeater1.DataSource = res.SearchList(searchStr); } else { Repeater1.DataSource = res.PopularResList(); } Repeater2.DataSource = res.AllergyResList(searchStr); Repeater3.DataSource = res.LocationResList(searchStr); Repeater1.DataBind(); Repeater2.DataBind(); Repeater3.DataBind(); }