Beispiel #1
0
        public void SetupAll()
        {
            var config = new ConfigurationWrapper();
            var authenticationRepository = new AuthenticationRepository(new RestClient(config.GetEnvironmentVarAsString("MP_OAUTH_BASE_URL")),
                                                                        new RestClient(config.GetEnvironmentVarAsString("MP_REST_API_ENDPOINT")));
            var apiUserRepository = new ApiUserRepository(config, authenticationRepository);

            _authToken = apiUserRepository.GetToken();
        }