mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 11:24:44 +00:00
extract helper method for setting up GitHubClient
This commit is contained in:
@@ -11,10 +11,8 @@ namespace Octokit.Tests.Integration
|
||||
[IntegrationTest]
|
||||
public async Task CanGetEmail()
|
||||
{
|
||||
var github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
||||
{
|
||||
Credentials = Helper.Credentials
|
||||
};
|
||||
var github = Helper.GetAuthenticatedClient();
|
||||
|
||||
var client = new ObservableUserEmailsClient(github);
|
||||
|
||||
var email = await client.GetAll();
|
||||
|
||||
Reference in New Issue
Block a user