public async Task GetAllAdvertisementsNoNextPage()
{
AdvertisementSummaryPageResource pageResource = new AdvertisementSummaryPageResource
{
Links = new Links(this.Fixture.AdPostingApiServiceBaseUri)
{
{ "self", new Link { Href = "/advertisement" } }
}
};
var actualException = await Assert.ThrowsAsync<NotSupportedException>(async () => await pageResource.NextPageAsync());
var expectedException = new NotSupportedException("There are no more results");
actualException.ShouldBeEquivalentToException(expectedException);
}