private void RefreshAccessToken() { var testConfigInfo = TestConfigInfo.Get(); var authenticator = new TokenProvider(testConfigInfo.ClientId, testConfigInfo.ClientSecret); var refreshAccessToken = authenticator.RefreshAccessToken(testConfigInfo.RefreshToken); TestConfigInfo.Update(refreshAccessToken); }
protected BoxApiTestHarness() { RefreshAccessToken(); TestConfigInfo testInfo = TestConfigInfo.Get(); Client = GetClient(testInfo.AccessToken, null); CollaboratingUser = testInfo.CollaboratingUserId; CollaboratingUserEmail = testInfo.CollaboratingUserEmail; MaxQuarterSecondIterations = 80; }
protected static BoxManager GetClient(string onBehalfOf) { TestConfigInfo testInfo = TestConfigInfo.Get(); return(GetClient(testInfo.AccessToken, onBehalfOf)); }