public void PopularResListTest() { //arrange Restaurants r = new Restaurants(); //act DataSet ds = r.PopularResList(); //assert DataRow[] dr = ds.Tables[0].Select("[Total_review] = 14"); 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(); }