public MergingClientTests()
    {
        _github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };

        _fixture = _github.Repository.Merging;
        _context = _github.CreateRepositoryContext("public-repo").Result;
    }
Exemple #2
0
    public MergingClientTests()
    {
        _github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };

        _fixture = _github.Repository.Merging;
        _context = _github.CreateRepositoryContext("public-repo").Result;
    }
    public MergingClientTests()
    {
        _client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };

        var repoName = Helper.MakeNameWithTimestamp("public-repo");
        _fixture = _client.Repository.Merging;
        _repository = _client.Repository.Create(new NewRepository { Name = repoName, AutoInit = true }).Result;
        _owner = _repository.Owner.Login;
    }
    public MergingClientTests()
    {
        _client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };

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

        _fixture    = _client.Repository.Merging;
        _repository = _client.Repository.Create(new NewRepository {
            Name = repoName, AutoInit = true
        }).Result;
        _owner = _repository.Owner.Login;
    }
 public ObservableMergingClient(IGitHubClient client)
 {
     Ensure.ArgumentNotNull(client, "client");
     _client = client.Repository.Merging;
 }
 public ObservableMergingClient(IGitHubClient client)
 {
     Ensure.ArgumentNotNull(client, "client");
     _client = client.Repository.Merging;
 }