Skip to content

Commit

Permalink
Merge 19d9fcf into ce9f810
Browse files Browse the repository at this point in the history
  • Loading branch information
mozts2005 authored Apr 2, 2017
2 parents ce9f810 + 19d9fcf commit ee0f547
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Tests/HelpCenter/ArticleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,5 +246,17 @@ public async Task TestCaseForIssue220()
});
}

[Test]
public async Task CanGetSecondPageUisngGetByPageUrl()
{
int pageSize = 3;

var res = await api.HelpCenter.Articles.GetArticlesAsync(perPage: pageSize);
Assert.That(res.PageSize, Is.EqualTo(pageSize));

var resp = await api.HelpCenter.Articles.GetByPageUrlAsync<GroupArticleResponse>(res.NextPage, pageSize);
Assert.That(resp.Page, Is.EqualTo(2));

}
}
}

0 comments on commit ee0f547

Please sign in to comment.