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

            _client     = client.Issue.Milestone;
            _connection = client.Connection;
        }
        public ObservableMilestonesClient(IGitHubClient client)
        {
            Ensure.ArgumentNotNull(client, "client");

            _client = client.Issue.Milestone;
            _connection = client.Connection;
        }
    public MilestonesClientTests()
    {
        _github = Helper.GetAuthenticatedClient();

        _milestonesClient = _github.Issue.Milestone;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

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

        _milestonesClient = github.Issue.Milestone;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _context = github.CreateRepositoryContext(new NewRepository(repoName)).Result;
    }
Exemple #5
0
    public MilestonesClientTests()
    {
        _gitHubClient = Helper.GetAuthenticatedClient();

        _milestonesClient = _gitHubClient.Issue.Milestone;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _repository      = _gitHubClient.Repository.Create(new NewRepository(repoName)).Result;
        _repositoryOwner = _repository.Owner.Login;
        _repositoryName  = _repository.Name;
    }
    public MilestonesClientTests()
    {
        _gitHubClient = Helper.GetAuthenticatedClient();

        _milestonesClient = _gitHubClient.Issue.Milestone;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _repository = _gitHubClient.Repository.Create(new NewRepository { Name = repoName }).Result;
        _repositoryOwner = _repository.Owner.Login;
        _repositoryName = _repository.Name;
    }
    public MilestonesClientTests()
    {
        _gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };
        _milestonesClient = _gitHubClient.Issue.Milestone;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _repository = _gitHubClient.Repository.Create(new NewRepository { Name = repoName }).Result;
        _repositoryOwner = _repository.Owner.Login;
        _repositoryName = _repository.Name;
    }
    public MilestonesClientTests()
    {
        _gitHubClient = new GitHubClient(new ProductHeaderValue("OctokitTests"))
        {
            Credentials = Helper.Credentials
        };
        _milestonesClient = _gitHubClient.Issue.Milestone;
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _repository = _gitHubClient.Repository.Create(new NewRepository {
            Name = repoName
        }).Result;
        _repositoryOwner = _repository.Owner.Login;
        _repositoryName  = _repository.Name;
    }