Ejemplo n.º 1
0
 public LookupTests()
 {
     _client = new BandwidthClient.Builder()
               .Environment(Bandwidth.Standard.Environment.Production)
               .PhoneNumberLookupBasicAuthCredentials(TestConstants.Username, TestConstants.Password)
               .Build();
 }
Ejemplo n.º 2
0
 public MediaManagementTests()
 {
     _client = new BandwidthClient.Builder()
               .Environment(Bandwidth.Standard.Environment.Production)
               .MessagingBasicAuthCredentials(TestConstants.Username, TestConstants.Password)
               .Build();
 }
Ejemplo n.º 3
0
 public ParticipantTests()
 {
     _client = new BandwidthClient.Builder()
               .Environment(Bandwidth.Standard.Environment.Production)
               .WebRtcBasicAuthCredentials(TestConstants.Username, TestConstants.Password)
               .Build();
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 6
0
 /// <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));
 }
Ejemplo n.º 7
0
 /// <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));
 }
Ejemplo n.º 8
0
 /// <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));
 }
Ejemplo n.º 9
0
 /// <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));
 }
Ejemplo n.º 10
0
 /// <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));
 }