public async Task <IOdsRestClient> Create()
        {
            var connectionInfo = await _odsApiConnectionInformationProvider.GetConnectionInformationForEnvironment();

            _tokenRetriever = new TokenRetriever(connectionInfo);
            _restClient     = new RestClient(connectionInfo.ApiBaseUrl);
            return(new OdsRestClient(connectionInfo, _restClient, _tokenRetriever));
        }
        public async Task <IOdsRestClient> Create(CloudOdsEnvironment environment)
        {
            Preconditions.ThrowIfNull(environment, nameof(environment));
            var connectionInfo = await _odsApiConnectionInformationProvider.GetConnectionInformationForEnvironment(environment);

            _tokenRetriever = new TokenRetriever(connectionInfo);
            _restClient     = new RestClient(connectionInfo.ApiBaseUrl);
            return(new OdsRestClient(connectionInfo, _restClient, _tokenRetriever));
        }