//---------------------------------------------------------------------------- // // AirtableBase.AirtableBase // constructor -- for Unit tests only // //---------------------------------------------------------------------------- internal AirtableBase( string apiKey, string baseId, DelegatingHandler delegatingHandler) // specific handler for unit test purpose { if (String.IsNullOrEmpty(apiKey)) { throw new ArgumentException("apiKey cannot be null", "apiKey"); } if (String.IsNullOrEmpty(baseId)) { throw new ArgumentException("baseId cannot be null", "baseId"); } BaseId = baseId; httpClientWithRetries = new HttpClientWithRetries(delegatingHandler, apiKey); }