Example of getting content

This commit is contained in:
Kristian Hellang
2014-03-19 00:08:56 +01:00
committed by Haacked
parent bed18b9980
commit e9969d7350
13 changed files with 289 additions and 51 deletions

View File

@@ -0,0 +1,21 @@
using System.Threading.Tasks;
namespace Octokit.Tests.Integration.Clients
{
public class RepositoryContentsClientTests
{
public class TheGetRootMethod
{
[IntegrationTest]
public async Task GetsRootContents()
{
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials = Helper.Credentials
};
var contents = await github.Repository.Contents.GetForPath("octokit", "octokit.net", "Octokit.Reactive/ObservableGitHubClient.cs");
}
}
}
}