本文整理汇总了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;
}
示例2: TheCreateReactionMethod
public TheCreateReactionMethod()
{
_github = Helper.GetAuthenticatedClient();
var repoName = Helper.MakeNameWithTimestamp("public-repo");
_issuesClient = _github.Issue;
_context = _github.CreateRepositoryContext(new NewRepository(repoName)).Result;
}
示例3: ReferencesClientTests
public ReferencesClientTests()
{
_github = Helper.GetAuthenticatedClient();
_fixture = _github.Git.Reference;
_context = _github.CreateRepositoryContext("public-repo").Result;
}
示例4: TreeClientTests
public TreeClientTests()
{
_github = Helper.GetAuthenticatedClient();
_fixture = _github.GitDatabase.Tree;
_context = _github.CreateRepositoryContext("public-repo").Result;
}
示例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;
}
示例6: MergingClientTests
public MergingClientTests()
{
_github = new GitHubClient(new ProductHeaderValue("OctokitTests"))
{
Credentials = Helper.Credentials
};
_fixture = _github.Repository.Merging;
_context = _github.CreateRepositoryContext("public-repo").Result;
}
示例7: TheDeleteMethod
public TheDeleteMethod()
{
_github = Helper.GetAuthenticatedClient();
_context = _github.CreateRepositoryContext("public-repo").Result;
}
示例8: TestsWithNewRepository
public TestsWithNewRepository()
{
_github = Helper.GetAuthenticatedClient();
_fixture = _github.Repository.Commits;
_context = _github.CreateRepositoryContext("source-repo").Result;
}