mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Change the QueueLdapSync calls to use Post<T>(uri) with no body/data
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Tests.Integration.Helpers
|
||||
{
|
||||
internal sealed class EnterpriseTeamContext : IDisposable
|
||||
{
|
||||
internal EnterpriseTeamContext(Team team)
|
||||
{
|
||||
Team = team;
|
||||
TeamId = team.Id;
|
||||
TeamName = team.Name;
|
||||
}
|
||||
|
||||
internal int TeamId { get; private set; }
|
||||
internal string TeamName { get; private set; }
|
||||
|
||||
internal Team Team { get; private set; }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
EnterpriseHelper.DeleteTeam(Team);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,5 +29,12 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
|
||||
return new RepositoryContext(repo);
|
||||
}
|
||||
|
||||
internal async static Task<EnterpriseTeamContext> CreateEnterpriseTeamContext(this IGitHubClient client, string organization, NewTeam newTeam)
|
||||
{
|
||||
var team = await client.Organization.Team.Create(organization, newTeam);
|
||||
|
||||
return new EnterpriseTeamContext(team);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user