public void TestInit() { _list = new PagerList <Employee>(1, 2, 3); _list.Add(new Employee()); _list.Add(new Employee() { Name = "B" }); }
public void TestToJson() { var list = new PagerList <Sample>(); list.Add(new Sample()); Assert.Contains("PageCount", Json.ToJson(list)); }
public void TestInit() { _list = new PagerList<Customer>( 1,2,3,"Name" ); _list.Add( Customer.GetCustomerA() ); _list.Add( Customer.GetCustomerB() ); }
/// <summary> /// 测试初始化 /// </summary> public PagerListTest() { _list = new PagerList <AggregateRootSample>(1, 2, 3, "Name"); _list.Add(AggregateRootSample.CreateSample()); _list.Add(AggregateRootSample.CreateSample2()); }
public void TestInit() { _list = new PagerList <Customer>(1, 2, 3, "Name"); _list.Add(Customer.GetCustomerA()); _list.Add(Customer.GetCustomerB()); }