mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Change the QueueLdapSync calls to use Post<T>(uri) with no body/data
This commit is contained in:
@@ -124,6 +124,22 @@ namespace Octokit.Tests.Integration
|
||||
catch { }
|
||||
}
|
||||
|
||||
public static void DeleteTeam(Team team)
|
||||
{
|
||||
if (team != null)
|
||||
DeleteTeam(team.Id);
|
||||
}
|
||||
|
||||
public static void DeleteTeam(int teamId)
|
||||
{
|
||||
var api = GetAuthenticatedClient();
|
||||
try
|
||||
{
|
||||
api.Organization.Team.Delete(teamId).Wait(TimeSpan.FromSeconds(15));
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
|
||||
public static IGitHubClient GetAuthenticatedClient()
|
||||
{
|
||||
return new GitHubClient(new ProductHeaderValue("OctokitEnterpriseTests"), GitHubEnterpriseUrl)
|
||||
|
||||
Reference in New Issue
Block a user