Пример #1
0
        public void SearchTest()
        {
            int recordCount;
            var list = bizS.Search("", 0, 10, out recordCount);

            Assert.AreEqual(10, list);
        }
Пример #2
0
    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();
    }