public void HasValidNextPageAndEmptyPreviousPage() { PageNumberAndSizeTests.AssertIsEmpty(this.defaultPagingInfo.PreviousPage); Assert.AreEqual(PageNumberAndSize.DefaultPageSize, this.defaultPagingInfo.CurrentPage.Size); Assert.AreEqual(this.defaultPagingInfo.CurrentPage.Size, this.defaultPagingInfo.NextPage.Size); }
public void HasEmptyPages() { PageNumberAndSizeTests.AssertIsEmpty(this.emptyPagingInfo.CurrentPage); PageNumberAndSizeTests.AssertIsEmpty(this.emptyPagingInfo.FirstPage); PageNumberAndSizeTests.AssertIsEmpty(this.emptyPagingInfo.LastPage); PageNumberAndSizeTests.AssertIsEmpty(this.emptyPagingInfo.NextPage); PageNumberAndSizeTests.AssertIsEmpty(this.emptyPagingInfo.PreviousPage); Assert.AreEqual(0, this.emptyPagingInfo.ItemCount); Assert.IsNull(this.emptyPagingInfo.AllPages); Assert.IsFalse(this.emptyPagingInfo.IsFirstPage); Assert.IsFalse(this.emptyPagingInfo.IsLastPage); }
public void ReturnsEmptyFromEmpty() { PageNumberAndSize newPage = PagingInfo.Empty.TurnToPage(6); PageNumberAndSizeTests.AssertIsEmpty(newPage); }
public void HasEmptyNextAndPreviousPages() { PageNumberAndSizeTests.AssertIsEmpty(this.unboundedPagingInfo.NextPage); PageNumberAndSizeTests.AssertIsEmpty(this.unboundedPagingInfo.PreviousPage); }