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

            _client     = client.Repository.RepositoryComments;
            _connection = client.Connection;
        }
        public ObservableRepositoryCommentsClient(IGitHubClient client)
        {
            Ensure.ArgumentNotNull(client, "client");

            _client = client.Repository.RepositoryComments;
            _connection = client.Connection;
        }
示例#3
0
    public PullRequestsClientTests()
    {
        _github = Helper.GetAuthenticatedClient();

        _fixture = _github.Repository.PullRequest;
        _repositoryCommentsClient = _github.Repository.Comment;

        _context = _github.CreateRepositoryContext("source-repo").Result;
    }
示例#4
0
    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 = 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;
    }
示例#8
0
    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;
    }
示例#9
0
            public TheGetAllForRepositoryMethod()
            {
                _github = Helper.GetAuthenticatedClient();

                _fixture = _github.Repository.Comment;
            }
        public TheGetAllForRepositoryMethod()
        {
            var client = Helper.GetAuthenticatedClient();

            _fixture = client.Repository.Comment;
        }
        public TheGetAllForRepositoryMethod()
        {
            _github = Helper.GetAuthenticatedClient();

            _fixture = _github.Repository.Comment;
        }
        public TheGetAllForRepositoryMethod()
        {
            var client = Helper.GetAuthenticatedClient();

            _fixture = client.Repository.Comment;
        }