public void SearchTest() { int recordCount; var list = bizS.Search("", 0, 10, out recordCount); Assert.AreEqual(10, list); }
private void BindSupplier() { int pageIndex = GetPageIndex(); int totalRecords; var product = bizSupplier.Search(tbxName.Text.Trim(), pageIndex, pager.PageSize, out totalRecords); // bizProduct.GetAll<NModel.Product>(); pager.RecordCount = totalRecords; dgSupplier.DataSource = product.OrderByDescending(x => x.Code);; dgSupplier.DataBind(); }