/// <summary>
 /// Initializes a new instance of <see cref="SmsGatewayClient"/>.
 /// </summary>
 /// <param name="baseAddress">Base address.</param>
 /// <param name="credentials">Service credentials.</param>
 /// <param name="messageHandler">Message handler.</param>
 /// <exception cref="ArgumentNullException">If any of the parameters are null.</exception>
 public SmsGatewayClient(string baseAddress, SmsGatewayCredentials credentials, HttpMessageHandler messageHandler)
 {
     if (baseAddress == null) throw new ArgumentNullException(nameof(baseAddress));
     if (credentials == null) throw new ArgumentNullException(nameof(credentials));
     if (messageHandler == null) throw new ArgumentNullException(nameof(messageHandler));
     _credentials = credentials;
     CreateHttpClient(baseAddress, messageHandler);
 }
 private SmsGatewayClient CreateClient(string baseAddress, SmsGatewayCredentials credentials)
 {
     return new SmsGatewayClient(baseAddress, credentials, new FakeSmsGatewayResponseGenerator(_requestHandler));
 }
 /// <summary>
 /// Initializes a new instance of <see cref="SmsGatewayClient"/>.
 /// </summary>
 /// <param name="baseAddress">Base address.</param>
 /// <param name="credentials">Service credentials.</param>
 public SmsGatewayClient(string baseAddress, SmsGatewayCredentials credentials)
     : this(baseAddress, credentials, new HttpClientHandler())
 {
 }