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

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

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