mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
extract helper method for setting up GitHubClient
This commit is contained in:
@@ -13,10 +13,8 @@ namespace Octokit.Tests.Integration
|
||||
[IntegrationTest]
|
||||
public async Task ReturnsSpecifiedRepository()
|
||||
{
|
||||
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
var github = Helper.GetAuthenticatedClient();
|
||||
|
||||
var client = new ObservableRepositoriesClient(github);
|
||||
var observable = client.Get("haacked", "seegit");
|
||||
var repository = await observable;
|
||||
|
||||
Reference in New Issue
Block a user