Example #1
0
 /// <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);
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="apiKey"></param>
 public XboxAPIClient(string apiKey)
 {
     this.xboxApiRestClient = new XboxAPIV2RestClient(apiKey);
 }