当前位置: 首页>>代码示例>>C#>>正文


C# IGitHubClient.CreateRepositoryContext方法代码示例

本文整理汇总了C#中IGitHubClient.CreateRepositoryContext方法的典型用法代码示例。如果您正苦于以下问题:C# IGitHubClient.CreateRepositoryContext方法的具体用法?C# IGitHubClient.CreateRepositoryContext怎么用?C# IGitHubClient.CreateRepositoryContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IGitHubClient的用法示例。


在下文中一共展示了IGitHubClient.CreateRepositoryContext方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AssigneesClientTests

    public AssigneesClientTests()
    {
        _github = Helper.GetAuthenticatedClient();
        var repoName = Helper.MakeNameWithTimestamp("public-repo");

        _context = _github.CreateRepositoryContext(new NewRepository(repoName)).Result;
    }
开发者ID:daveaglick,项目名称:octokit.net,代码行数:7,代码来源:AssigneesClientTests.cs

示例2: TheCreateReactionMethod

 public TheCreateReactionMethod()
 {
     _github = Helper.GetAuthenticatedClient();
     var repoName = Helper.MakeNameWithTimestamp("public-repo");
     _issuesClient = _github.Issue;
     _context = _github.CreateRepositoryContext(new NewRepository(repoName)).Result;
 }
开发者ID:daveaglick,项目名称:octokit.net,代码行数:7,代码来源:IssueCommentReactionsClientTests.cs

示例3: ReferencesClientTests

    public ReferencesClientTests()
    {
        _github = Helper.GetAuthenticatedClient();

        _fixture = _github.Git.Reference;

        _context = _github.CreateRepositoryContext("public-repo").Result;
    }
开发者ID:cloudRoutine,项目名称:octokit.net,代码行数:8,代码来源:ReferencesClientTests.cs

示例4: TreeClientTests

    public TreeClientTests()
    {
        _github = Helper.GetAuthenticatedClient();

        _fixture = _github.GitDatabase.Tree;

        _context = _github.CreateRepositoryContext("public-repo").Result;
    }
开发者ID:natsihit2,项目名称:octokit.net,代码行数:8,代码来源:TreeClientTests.cs

示例5: PullRequestReviewCommentsClientTests

    public PullRequestReviewCommentsClientTests()
    {
        _github = Helper.GetAuthenticatedClient();

        _client = _github.PullRequest.Comment;

        // We'll create a pull request that can be used by most tests
        _context = _github.CreateRepositoryContext("test-repo").Result;
    }
开发者ID:cloudRoutine,项目名称:octokit.net,代码行数:9,代码来源:PullRequestReviewCommentsClientTests.cs

示例6: MergingClientTests

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

        _fixture = _github.Repository.Merging;
        _context = _github.CreateRepositoryContext("public-repo").Result;
    }
开发者ID:cloudRoutine,项目名称:octokit.net,代码行数:10,代码来源:MergingClientTests.cs

示例7: TheDeleteMethod

        public TheDeleteMethod()
        {
            _github = Helper.GetAuthenticatedClient();

            _context = _github.CreateRepositoryContext("public-repo").Result;
        }
开发者ID:jrusbatch,项目名称:octokit.net,代码行数:6,代码来源:RepositoryCommentsClientTests.cs

示例8: TestsWithNewRepository

        public TestsWithNewRepository()
        {
            _github = Helper.GetAuthenticatedClient();

            _fixture = _github.Repository.Commits;

            _context = _github.CreateRepositoryContext("source-repo").Result;
        }
开发者ID:natsihit2,项目名称:octokit.net,代码行数:8,代码来源:RepositoryCommitsClientTests.cs


注:本文中的IGitHubClient.CreateRepositoryContext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。