mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-20 06:05:12 +00:00
rename EnterpriseTeamContext to TeamContext
This commit is contained in:
@@ -13,7 +13,7 @@ public class EnterpriseLdapClientTests : IDisposable
|
|||||||
readonly string _testUser = "test-user";
|
readonly string _testUser = "test-user";
|
||||||
readonly string _distinguishedNameUser = "uid=test-user,ou=users,dc=company,dc=com";
|
readonly string _distinguishedNameUser = "uid=test-user,ou=users,dc=company,dc=com";
|
||||||
|
|
||||||
readonly EnterpriseTeamContext _context;
|
readonly TeamContext _context;
|
||||||
readonly string _distinguishedNameTeam = "cn=test-team,ou=groups,dc=company,dc=com";
|
readonly string _distinguishedNameTeam = "cn=test-team,ou=groups,dc=company,dc=com";
|
||||||
|
|
||||||
public EnterpriseLdapClientTests()
|
public EnterpriseLdapClientTests()
|
||||||
|
|||||||
@@ -26,11 +26,11 @@ namespace Octokit.Tests.Integration.Helpers
|
|||||||
return new RepositoryContext(repo);
|
return new RepositoryContext(repo);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static async Task<EnterpriseTeamContext> CreateEnterpriseTeamContext(this IGitHubClient client, string organization, NewTeam newTeam)
|
internal static async Task<TeamContext> CreateEnterpriseTeamContext(this IGitHubClient client, string organization, NewTeam newTeam)
|
||||||
{
|
{
|
||||||
var team = await client.Organization.Team.Create(organization, newTeam);
|
var team = await client.Organization.Team.Create(organization, newTeam);
|
||||||
|
|
||||||
return new EnterpriseTeamContext(team);
|
return new TeamContext(team);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static async Task<EnterpriseUserContext> CreateEnterpriseUserContext(this IGitHubClient client, NewUser newUser)
|
internal static async Task<EnterpriseUserContext> CreateEnterpriseUserContext(this IGitHubClient client, NewUser newUser)
|
||||||
|
|||||||
@@ -28,11 +28,11 @@ namespace Octokit.Tests.Integration.Helpers
|
|||||||
return new RepositoryContext(repo);
|
return new RepositoryContext(repo);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static async Task<EnterpriseTeamContext> CreateEnterpriseTeamContext(this IObservableGitHubClient client, string organization, NewTeam newTeam)
|
internal static async Task<TeamContext> CreateEnterpriseTeamContext(this IObservableGitHubClient client, string organization, NewTeam newTeam)
|
||||||
{
|
{
|
||||||
var team = await client.Organization.Team.Create(organization, newTeam);
|
var team = await client.Organization.Team.Create(organization, newTeam);
|
||||||
|
|
||||||
return new EnterpriseTeamContext(team);
|
return new TeamContext(team);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal static async Task<EnterpriseUserContext> CreateEnterpriseUserContext(this IObservableGitHubClient client, NewUser newUser)
|
internal static async Task<EnterpriseUserContext> CreateEnterpriseUserContext(this IObservableGitHubClient client, NewUser newUser)
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Octokit.Tests.Integration.Helpers
|
namespace Octokit.Tests.Integration.Helpers
|
||||||
{
|
{
|
||||||
internal sealed class EnterpriseTeamContext : IDisposable
|
internal sealed class TeamContext : IDisposable
|
||||||
{
|
{
|
||||||
internal EnterpriseTeamContext(Team team)
|
internal TeamContext(Team team)
|
||||||
{
|
{
|
||||||
Team = team;
|
Team = team;
|
||||||
TeamId = team.Id;
|
TeamId = team.Id;
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
<Compile Include="Helpers\PersonalAccessTokenTestAttribute.cs" />
|
<Compile Include="Helpers\PersonalAccessTokenTestAttribute.cs" />
|
||||||
<Compile Include="Helpers\PaidAccountTestAttribute.cs" />
|
<Compile Include="Helpers\PaidAccountTestAttribute.cs" />
|
||||||
<Compile Include="Helpers\ReferenceExtensionsTests.cs" />
|
<Compile Include="Helpers\ReferenceExtensionsTests.cs" />
|
||||||
<Compile Include="Helpers\EnterpriseTeamContext.cs" />
|
<Compile Include="Helpers\TeamContext.cs" />
|
||||||
<Compile Include="Helpers\RepositoryContext.cs" />
|
<Compile Include="Helpers\RepositoryContext.cs" />
|
||||||
<Compile Include="Helpers\RepositorySetupHelper.cs" />
|
<Compile Include="Helpers\RepositorySetupHelper.cs" />
|
||||||
<Compile Include="HttpClientAdapterTests.cs" />
|
<Compile Include="HttpClientAdapterTests.cs" />
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace Octokit.Tests.Integration
|
|||||||
readonly string _testUser = "test-user";
|
readonly string _testUser = "test-user";
|
||||||
readonly string _distinguishedNameUser = "uid=test-user,ou=users,dc=company,dc=com";
|
readonly string _distinguishedNameUser = "uid=test-user,ou=users,dc=company,dc=com";
|
||||||
|
|
||||||
readonly EnterpriseTeamContext _context;
|
readonly TeamContext _context;
|
||||||
readonly string _distinguishedNameTeam = "cn=test-team,ou=groups,dc=company,dc=com";
|
readonly string _distinguishedNameTeam = "cn=test-team,ou=groups,dc=company,dc=com";
|
||||||
|
|
||||||
public ObservableEnterpriseLdapClientTests()
|
public ObservableEnterpriseLdapClientTests()
|
||||||
|
|||||||
Reference in New Issue
Block a user