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

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

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