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

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