public void GetPagedLogEntriesHandlesPagingProperly(int total, int pageSize, int expectedPageCount, int itemsCountOnLastPage) { Config.CreateBlog("", "username", "password", _hostName, "blog"); BlogRequest.Current.Blog = Config.GetBlog(_hostName, "blog"); var tester = new LogEntryCollectionTester(); AssertPagedCollection(tester, expectedPageCount, itemsCountOnLastPage, pageSize, total); }
public void GetPagedLogEntriesHandlesPagingProperly(int total, int pageSize, int expectedPageCount, int itemsCountOnLastPage) { Assert.IsTrue(Config.CreateBlog("", "username", "password", this.hostName, "blog")); IPagedCollectionTester tester = new LogEntryCollectionTester(); AssertPagedCollection(tester, expectedPageCount, itemsCountOnLastPage, pageSize, total); }