Change the QueueLdapSync calls to use Post<T>(uri) with no body/data

This commit is contained in:
Ryan Gribble
2016-02-06 22:41:17 +10:00
parent 6965ac44b2
commit 1f13001fd8
22 changed files with 165 additions and 60 deletions
@@ -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)