public ObservableRepositoryCommentsClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, "client"); _client = client.Repository.RepositoryComments; _connection = client.Connection; }
public PullRequestsClientTests() { _github = Helper.GetAuthenticatedClient(); _fixture = _github.Repository.PullRequest; _repositoryCommentsClient = _github.Repository.Comment; _context = _github.CreateRepositoryContext("source-repo").Result; }
public PullRequestsClientTests() { _github = Helper.GetAuthenticatedClient(); _fixture = _github.Repository.PullRequest; _repositoryCommentsClient = _github.Repository.RepositoryComments; _context = _github.CreateRepositoryContext("source-repo").Result; }
public PullRequestsClientTests() { _client = Helper.GetAuthenticatedClient(); _fixture = _client.Repository.PullRequest; _repositoryCommentsClient = _client.Repository.RepositoryComments; var repoName = Helper.MakeNameWithTimestamp("source-repo"); _repository = _client.Repository.Create(new NewRepository { Name = repoName, AutoInit = true }).Result; }
public PullRequestsClientTests() { _client = new GitHubClient(new ProductHeaderValue("OctokitTests")) { Credentials = Helper.Credentials }; _fixture = _client.Repository.PullRequest; _repositoryCommentsClient = _client.Repository.RepositoryComments; var repoName = Helper.MakeNameWithTimestamp("source-repo"); _repository = _client.Repository.Create(new NewRepository { Name = repoName, AutoInit = true }).Result; }
public TheGetAllForRepositoryMethod() { _github = Helper.GetAuthenticatedClient(); _fixture = _github.Repository.Comment; }
public TheGetAllForRepositoryMethod() { var client = Helper.GetAuthenticatedClient(); _fixture = client.Repository.Comment; }