Exemplo n.º 1
0
        public void EndInitTest()
        {
            IOrderedQueryable <GenericParameterHelper> query = GetQuery();
            bool autoLoad = true;
            var  target   = new PagedQueryable <GenericParameterHelper>(query, autoLoad);

            target.EndInit();
        }
Exemplo n.º 2
0
        public void SortColumnTest()
        {
            IOrderedQueryable <GenericParameterHelper> query = GetQuery();
            bool autoLoad = true;
            var  target   = new PagedQueryable <GenericParameterHelper>(query, autoLoad);

            target.BeginInit();
            target.SortColumn = "Data";
            target.EndInit();

            Assert.AreEqual(1, target.CurrentPage);
        }