Beispiel #1
0
        private void RefreshAccessToken()
        {
            var testConfigInfo     = TestConfigInfo.Get();
            var authenticator      = new TokenProvider(testConfigInfo.ClientId, testConfigInfo.ClientSecret);
            var refreshAccessToken = authenticator.RefreshAccessToken(testConfigInfo.RefreshToken);

            TestConfigInfo.Update(refreshAccessToken);
        }
Beispiel #2
0
        protected BoxApiTestHarness()
        {
            RefreshAccessToken();
            TestConfigInfo testInfo = TestConfigInfo.Get();

            Client                     = GetClient(testInfo.AccessToken, null);
            CollaboratingUser          = testInfo.CollaboratingUserId;
            CollaboratingUserEmail     = testInfo.CollaboratingUserEmail;
            MaxQuarterSecondIterations = 80;
        }
Beispiel #3
0
        protected static BoxManager GetClient(string onBehalfOf)
        {
            TestConfigInfo testInfo = TestConfigInfo.Get();

            return(GetClient(testInfo.AccessToken, onBehalfOf));
        }