public ObservableIssuesEventsClient(IGitHubClient client) { Ensure.ArgumentNotNull(client, "client"); _client = client.Issue.Events; _connection = client.Connection; }
public IssuesEventsClientTests() { var github = Helper.GetAuthenticatedClient(); _issuesEventsClient = github.Issue.Events; _issuesClient = github.Issue; var repoName = Helper.MakeNameWithTimestamp("public-repo"); _context = github.CreateRepositoryContext(new NewRepository(repoName)).Result; }
public IssuesEventsClientTests() { _gitHubClient = Helper.GetAuthenticatedClient(); _issuesEventsClientClient = _gitHubClient.Issue.Events; _issuesClient = _gitHubClient.Issue; var repoName = Helper.MakeNameWithTimestamp("public-repo"); _repository = _gitHubClient.Repository.Create(new NewRepository(repoName)).Result; _repositoryOwner = _repository.Owner.Login; _repositoryName = _repository.Name; }
public IssuesEventsClientTests() { _gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests")) { Credentials = Helper.Credentials }; _issuesEventsClientClient = _gitHubClient.Issue.Events; _issuesClient = _gitHubClient.Issue; var repoName = Helper.MakeNameWithTimestamp("public-repo"); _repository = _gitHubClient.Repository.Create(new NewRepository { Name = repoName }).Result; _repositoryOwner = _repository.Owner.Login; _repositoryName = _repository.Name; }