extract helper method for setting up GitHubClient

This commit is contained in:
Brendan Forster
2015-01-02 19:00:10 +09:30
parent 50bbb1c7ce
commit 28e8372922
36 changed files with 160 additions and 292 deletions
@@ -16,10 +16,7 @@ public class PullRequestsClientTests : IDisposable
public PullRequestsClientTests()
{
_client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials = Helper.Credentials
};
_client = Helper.GetAuthenticatedClient();
_fixture = _client.Repository.PullRequest;
_repositoryCommentsClient = _client.Repository.RepositoryComments;