public StatisticsClientTests()
 {
     _client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
     {
         Credentials = Helper.Credentials
     };
     _fixture = _client.GitDatabase.Commit;
 }
 public StatisticsClientTests()
 {
     _client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
     {
         Credentials = Helper.Credentials
     };
     _fixture = _client.GitDatabase.Commit;
 }
    public CommitsClientTests()
    {
        _client = Helper.GetAuthenticatedClient();

        var repoName = Helper.MakeNameWithTimestamp("public-repo");
        _fixture = _client.GitDatabase.Commit;
        _repository = _client.Repository.Create(new NewRepository(repoName) { AutoInit = true }).Result;
        _owner = _repository.Owner.Login;
    }
        public CommitsClientTests()
        {
            this._gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
            {
                Credentials = Helper.Credentials
            };

            var repoName = Helper.MakeNameWithTimestamp("public-repo");
            this._commitsClient = this._gitHubClient.GitDatabase.Commit;
            this._repository = this._gitHubClient.Repository.Create(new NewRepository { Name = repoName, AutoInit = true }).Result;
        }
示例#5
0
    public CommitsClientTests()
    {
        _client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };

        var repoName = Helper.MakeNameWithTimestamp("public-repo");
        _fixture = _client.GitDatabase.Commit;
        _repository = _client.Repository.Create(new NewRepository { Name = repoName, AutoInit = true }).Result;
        _owner = _repository.Owner.Login;
    }
示例#6
0
    public CommitsClientTests()
    {
        _client = Helper.GetAuthenticatedClient();

        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _fixture    = _client.GitDatabase.Commit;
        _repository = _client.Repository.Create(new NewRepository {
            Name = repoName, AutoInit = true
        }).Result;
        _owner = _repository.Owner.Login;
    }
示例#7
0
        public CommitsClientTests()
        {
            this._gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
            {
                Credentials = Helper.Credentials
            };

            var repoName = Helper.MakeNameWithTimestamp("public-repo");

            this._commitsClient = this._gitHubClient.GitDatabase.Commit;
            this._repository    = this._gitHubClient.Repository.Create(new NewRepository {
                Name = repoName, AutoInit = true
            }).Result;
        }
示例#8
0
    public CommitsClientTests()
    {
        _client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };

        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _fixture    = _client.GitDatabase.Commit;
        _repository = _client.Repository.Create(new NewRepository {
            Name = repoName, AutoInit = true
        }).Result;
        _owner = _repository.Owner.Login;
    }
 public ObservableCommitsClient(IGitHubClient client)
 {
     Ensure.ArgumentNotNull(client, "client");
     _client = client.GitDatabase.Commit;
 }
示例#10
0
 public StatisticsClientTests()
 {
     _client  = Helper.GetAuthenticatedClient();
     _fixture = _client.Git.Commit;
 }
 public StatisticsClientTests()
 {
     _client = Helper.GetAuthenticatedClient();
     _fixture = _client.Git.Commit;
 }
示例#12
0
 public ObservableCommitsClient(IGitHubClient client)
 {
     Ensure.ArgumentNotNull(client, "client");
     _client = client.GitDatabase.Commit;
 }
示例#13
0
        public ObservableCommitsClient(IGitHubClient client)
        {
            Ensure.ArgumentNotNull(client, nameof(client));

            _client = client.Git.Commit;
        }