mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-31 18:13:21 +00:00
Implement Team Membership changes (#1670)
* Fixup TeamContext helper name * Implement overload for GetAllMembers to take request parameter * Update tests * Implement Obersvable client changes * Observable tests * Implement AddOrEditMembership function returning a new response model, and obsolete the old AddMembership function returning an enum * Implement GetMembershipDetails function returning new TeamMembershipDetails response model, and obsolete the old GetMembership function returning an enum * Clarify that an exception is thrown when not a member * Add integration tests for AddOrEditMembership and GetMembershipDetails * fixup exception test for observable client * Update wording of obsolete message
This commit is contained in:
@@ -28,7 +28,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
return new RepositoryContext(client.Connection, repo);
|
||||
}
|
||||
|
||||
internal static async Task<TeamContext> CreateEnterpriseTeamContext(this IObservableGitHubClient client, string organization, NewTeam newTeam)
|
||||
internal static async Task<TeamContext> CreateTeamContext(this IObservableGitHubClient client, string organization, NewTeam newTeam)
|
||||
{
|
||||
var team = await client.Organization.Team.Create(organization, newTeam);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user