Beispiel #1
0
        public void RefreshTest()
        {
            IOrderedQueryable <GenericParameterHelper> query = GetQuery();
            bool autoLoad = true;
            var  target   = new PagedQueryable <GenericParameterHelper>(query, autoLoad);

            target.Reset();

            Assert.AreEqual(1, target.CurrentPage);
        }
Beispiel #2
0
        public void BeginInitTest()
        {
            IOrderedQueryable <GenericParameterHelper> query = GetQuery();
            bool autoLoad = true;
            var  target   = new PagedQueryable <GenericParameterHelper>(query, autoLoad);

            target.BeginInit();

            target.Reset();
        }
Beispiel #3
0
        public void ZeroCountQueryTest()
        {
            IOrderedQueryable <GenericParameterHelper> query = new List <GenericParameterHelper>().AsQueryable().OrderBy(i => i.Data);

            bool autoLoad = true;
            var  target   = new PagedQueryable <GenericParameterHelper>(query, autoLoad);

            target.Reset();

            Assert.AreEqual(0, target.Items.Count);
        }