Example #1
0
 public void TestInit()
 {
     _list = new PagerList <Employee>(1, 2, 3);
     _list.Add(new Employee());
     _list.Add(new Employee()
     {
         Name = "B"
     });
 }
Example #2
0
        public void TestToJson()
        {
            var list = new PagerList <Sample>();

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