This commit is contained in:
Prayank Mathur
2016-04-07 12:59:00 +05:30
parent 7f83e74125
commit 8ca8227ba0
3 changed files with 21 additions and 2 deletions
@@ -96,5 +96,24 @@ public class RepositoryPagesClientTests
Assert.NotEqual(firstPage[3].Url, secondPage[3].Url);
Assert.NotEqual(firstPage[4].Url, secondPage[4].Url);
}
public class TheGetLatestMethod
{
readonly IRepositoryPagesClient _repositoryPagesClient;
const string owner = "octokit";
const string name = "octokit.net";
public TheGetLatestMethod()
{
_repositoryPagesClient = Helper.GetAuthenticatedClient().Repository.Page;
}
public async Task ReturnsMetadata()
{
var data = _repositoryPagesClient.GetLatest(owner, name);
Assert.NotNull(data.Id);
}
}
}
}