public LookupTests() { _client = new BandwidthClient.Builder() .Environment(Bandwidth.Standard.Environment.Production) .PhoneNumberLookupBasicAuthCredentials(TestConstants.Username, TestConstants.Password) .Build(); }
public MediaManagementTests() { _client = new BandwidthClient.Builder() .Environment(Bandwidth.Standard.Environment.Production) .MessagingBasicAuthCredentials(TestConstants.Username, TestConstants.Password) .Build(); }
public ParticipantTests() { _client = new BandwidthClient.Builder() .Environment(Bandwidth.Standard.Environment.Production) .WebRtcBasicAuthCredentials(TestConstants.Username, TestConstants.Password) .Build(); }
public CreateCallTests() { _client = new BandwidthClient.Builder() .Environment(Bandwidth.Standard.Environment.Production) .VoiceBasicAuthCredentials(TestConstants.Username, TestConstants.Password) .Build(); }
public CreateMessagingMultiFactorTests() { _client = new BandwidthClient.Builder() .Environment(Bandwidth.Standard.Environment.Production) .MultiFactorAuthBasicAuthCredentials(TestConstants.Username, TestConstants.Password) .Build(); }
/// <summary> /// Initializes a new instance of the <see cref="MessagingClient"/> class. /// </summary> /// <param name="bandwidthClient"> bandwidthClient.</param> public MessagingClient(BandwidthClient bandwidthClient) { this.bandwidthClient = bandwidthClient; this.client = new Lazy <APIController>( () => new APIController(this.bandwidthClient, this.bandwidthClient.HttpClient, this.bandwidthClient.AuthManagers, this.bandwidthClient.HttpCallBack)); }
/// <summary> /// Initializes a new instance of the <see cref="WebRtcClient"/> class. /// </summary> /// <param name="bandwidthClient"> bandwidthClient.</param> public WebRtcClient(BandwidthClient bandwidthClient) { this.bandwidthClient = bandwidthClient; this.client = new Lazy <APIController>( () => new APIController(this.bandwidthClient, this.bandwidthClient.HttpClient, this.bandwidthClient.AuthManagers)); }
/// <summary> /// Default constructor /// </summary> public TwoFactorAuthClient(BandwidthClient bandwidthClient) { this.bandwidthClient = bandwidthClient; client = new Lazy <APIController>( () => new APIController(this.bandwidthClient, this.bandwidthClient.httpClient, this.bandwidthClient.authManagers)); }
/// <summary> /// Initializes a new instance of the <see cref="PhoneNumberLookupClient"/> class. /// </summary> /// <param name="bandwidthClient"> bandwidthClient.</param> public PhoneNumberLookupClient(BandwidthClient bandwidthClient) { this.bandwidthClient = bandwidthClient; this.client = new Lazy <APIController>( () => new APIController(this.bandwidthClient, this.bandwidthClient.HttpClient, this.bandwidthClient.AuthManagers, this.bandwidthClient.HttpCallBack)); }
/// <summary> /// Initializes a new instance of the <see cref="MultiFactorAuthClient"/> class. /// </summary> /// <param name="bandwidthClient"> bandwidthClient.</param> public MultiFactorAuthClient(BandwidthClient bandwidthClient) { this.bandwidthClient = bandwidthClient; this.mFA = new Lazy <MFAController>( () => new MFAController(this.bandwidthClient, this.bandwidthClient.HttpClient, this.bandwidthClient.AuthManagers)); }