public ObservableIssuesLabelsClient(IGitHubClient client)
        {
            Ensure.ArgumentNotNull(client, "client");

            _connection = client.Connection;
            _client = client.Issue.Labels;
        }
Пример #2
0
        private Program(FileIssuesOptions options)
        {
            _options = options;

            _issuesClient       = GitHub.GetIssuesClient(_options.Token);
            _issuesLabelsClient = GitHub.GetIssuesLabelsClient(_options.Token);
        }
Пример #3
0
        public ObservableIssuesLabelsClient(IGitHubClient client)
        {
            Ensure.ArgumentNotNull(client, "client");

            _connection = client.Connection;
            _client     = client.Issue.Labels;
        }
Пример #4
0
        private Program(FileIssuesOptions options)
        {
            _options = options;

            _issuesClient = GitHub.GetIssuesClient(_options.Token);
            _issuesLabelsClient = GitHub.GetIssuesLabelsClient(_options.Token);
        }
    public IssuesLabelsClientTests()
    {
        var github = Helper.GetAuthenticatedClient();

        _issuesLabelsClient= github.Issue.Labels;
        _issuesClient = github.Issue;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _context = github.CreateRepositoryContext(new NewRepository(repoName)).Result;
    }
    public IssuesLabelsClientTests()
    {
        var github = Helper.GetAuthenticatedClient();

        _issuesLabelsClient = github.Issue.Labels;
        _issuesClient       = github.Issue;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _context = github.CreateRepositoryContext(new NewRepository(repoName)).Result;
    }
    public IssuesLabelsClientTests()
    {
        _gitHubClient = Helper.GetAuthenticatedClient();

        _issuesLabelsClient= _gitHubClient.Issue.Labels;
        _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;
    }
    public IssuesLabelsClientTests()
    {
        _gitHubClient = Helper.GetAuthenticatedClient();

        _issuesLabelsClient = _gitHubClient.Issue.Labels;
        _issuesClient       = _gitHubClient.Issue;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _repository      = _gitHubClient.Repository.Create(new NewRepository(repoName)).Result;
        _repositoryOwner = _repository.Owner.Login;
        _repositoryName  = _repository.Name;
    }
Пример #9
0
    public IssuesLabelsClientTests()
    {
        _gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };
        _issuesLabelsClient= _gitHubClient.Issue.Labels;
        _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;
    }
Пример #10
0
    public IssuesLabelsClientTests()
    {
        _gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };
        _issuesLabelsClient = _gitHubClient.Issue.Labels;
        _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;
    }