상속: IPagedCollectionTester
예제 #1
0
        public void GetPagedLinksHandlesPagingProperly(int total, int pageSize, int expectedPageCount,
                                                       int itemsCountOnLastPage)
        {
            Config.CreateBlog("", "username", "password", _hostName, "blog");
            BlogRequest.Current.Blog = Config.GetBlog(_hostName, "blog");
            var tester = new LinkCollectionTester();

            AssertPagedCollection(tester, expectedPageCount, itemsCountOnLastPage, pageSize, total);
        }
 public void GetPagedLinksHandlesPagingProperly(int total, int pageSize, int expectedPageCount, int itemsCountOnLastPage)
 {
     Assert.IsTrue(Config.CreateBlog("", "username", "password", this.hostName, "blog"));
     IPagedCollectionTester tester = new LinkCollectionTester();
     AssertPagedCollection(tester, expectedPageCount, itemsCountOnLastPage, pageSize, total);
 }