public void PagingResponse_when_skip_10_take_10() { var skip = 10; var take = 10; var sot = new PagingResponseService(); var result = sot.SetPaging(skip, take, null); Assert.AreEqual(result.PreviousSkip, 0); Assert.AreEqual(result.NextSkip, 20); }
public void PagingResponse_when_skip_20_take_10_total_25() { var skip = 20; var take = 10; var total = 25; var sot = new PagingResponseService(); var result = sot.SetPaging(skip, take, total); Assert.AreEqual(result.PreviousSkip, 10); Assert.AreEqual(result.NextSkip, null); }