Esempio n. 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);
        }
Esempio n. 2
0
        protected BoxApiTestHarness()
        {
            RefreshAccessToken();
            TestConfigInfo testInfo = TestConfigInfo.Get();

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

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