public void AllergyResListTest() { //arrange Restaurants r = new Restaurants(); //act DataSet ds = r.AllergyResList("corn"); //assert DataRow[] dr = ds.Tables[0].Select("[AC_Name] = '%corn%'"); 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(); }