/// <summary> /// Internal constructor allowing dependency injection for unit testing. /// Avoids exposing internal IXboxAPIV2RestClient interface through public constructor. /// </summary> /// <param name="apiKey"></param> /// <param name="xboxApiRestClient"></param> internal XboxAPIClient(string apiKey, IXboxAPIV2RestClient xboxApiRestClient = null) { this.xboxApiRestClient = xboxApiRestClient ?? new XboxAPIV2RestClient(apiKey); }
/// <summary> /// /// </summary> /// <param name="apiKey"></param> public XboxAPIClient(string apiKey) { this.xboxApiRestClient = new XboxAPIV2RestClient(apiKey); }