From 595fb6aece1bfd230b8a21d23a02c4fc35fcb244 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sun, 4 Jan 2015 14:47:47 +0930 Subject: [PATCH] added environment variables for testing authorizations --- Octokit.Tests.Integration/Helper.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Octokit.Tests.Integration/Helper.cs b/Octokit.Tests.Integration/Helper.cs index ff64dc5e..417f4b61 100644 --- a/Octokit.Tests.Integration/Helper.cs +++ b/Octokit.Tests.Integration/Helper.cs @@ -46,12 +46,22 @@ namespace Octokit.Tests.Integration } } + public static string ClientId + { + get { return Environment.GetEnvironmentVariable("OCTOKIT_CLIENTID"); } + } + + public static string ClientSecret + { + get { return Environment.GetEnvironmentVariable("OCTOKIT_CLIENTSECRET"); } + } + public static void DeleteRepo(Repository repository) { if (repository != null) DeleteRepo(repository.Owner.Login, repository.Name); } - + public static void DeleteRepo(string owner, string name) { var api = GetAuthenticatedClient();