mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 14:15:12 +00:00
Modifiers declaration order was adjusted (#1276)
This commit is contained in:
committed by
Brendan Forster
parent
d7d03fafa3
commit
cdc708450f
@@ -6,7 +6,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
{
|
||||
internal static class ObservableGithubClientExtensions
|
||||
{
|
||||
internal async static Task<RepositoryContext> CreateRepositoryContext(this IObservableGitHubClient client, string repositoryName)
|
||||
internal static async Task<RepositoryContext> CreateRepositoryContext(this IObservableGitHubClient client, string repositoryName)
|
||||
{
|
||||
var repoName = Helper.MakeNameWithTimestamp(repositoryName);
|
||||
var repo = await client.Repository.Create(new NewRepository(repoName) { AutoInit = true });
|
||||
@@ -14,35 +14,35 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
return new RepositoryContext(repo);
|
||||
}
|
||||
|
||||
internal async static Task<RepositoryContext> CreateRepositoryContext(this IObservableGitHubClient client, string organizationLogin, NewRepository newRepository)
|
||||
internal static async Task<RepositoryContext> CreateRepositoryContext(this IObservableGitHubClient client, string organizationLogin, NewRepository newRepository)
|
||||
{
|
||||
var repo = await client.Repository.Create(organizationLogin, newRepository);
|
||||
|
||||
return new RepositoryContext(repo);
|
||||
}
|
||||
|
||||
internal async static Task<RepositoryContext> CreateRepositoryContext(this IObservableGitHubClient client, NewRepository newRepository)
|
||||
internal static async Task<RepositoryContext> CreateRepositoryContext(this IObservableGitHubClient client, NewRepository newRepository)
|
||||
{
|
||||
var repo = await client.Repository.Create(newRepository);
|
||||
|
||||
return new RepositoryContext(repo);
|
||||
}
|
||||
|
||||
internal async static Task<EnterpriseTeamContext> CreateEnterpriseTeamContext(this IObservableGitHubClient client, string organization, NewTeam newTeam)
|
||||
internal static async Task<EnterpriseTeamContext> CreateEnterpriseTeamContext(this IObservableGitHubClient client, string organization, NewTeam newTeam)
|
||||
{
|
||||
var team = await client.Organization.Team.Create(organization, newTeam);
|
||||
|
||||
return new EnterpriseTeamContext(team);
|
||||
}
|
||||
|
||||
internal async static Task<EnterpriseUserContext> CreateEnterpriseUserContext(this IObservableGitHubClient client, NewUser newUser)
|
||||
internal static async Task<EnterpriseUserContext> CreateEnterpriseUserContext(this IObservableGitHubClient client, NewUser newUser)
|
||||
{
|
||||
var user = await client.User.Administration.Create(newUser);
|
||||
|
||||
return new EnterpriseUserContext(user);
|
||||
}
|
||||
|
||||
internal async static Task<PublicKeyContext> CreatePublicKeyContext(this IObservableGitHubClient client)
|
||||
internal static async Task<PublicKeyContext> CreatePublicKeyContext(this IObservableGitHubClient client)
|
||||
{
|
||||
// Create a key
|
||||
string keyTitle = "title";
|
||||
|
||||
Reference in New Issue
Block a user