@@ -21,7 +21,7 @@ public class ConferencesSmokeTests : IDisposable
2121 private ApiClient restClient ;
2222 private UpdateConference updateConferenceBody ;
2323 private CallsApi callsApiInstance ;
24- private Configuration fakeConfiguration ;
24+ private Configuration configuration ;
2525 private CreateCall mantecaCallBody ;
2626 private UpdateConferenceMember updateConferenceMember ;
2727 private string accountId ;
@@ -39,24 +39,24 @@ public ConferencesSmokeTests()
3939 testUpdateBxml = "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?><Bxml><SpeakSentence locale=\" en_US\" gender=\" female\" voice=\" susan\" >This is test BXML.</SpeakSentence></Bxml>" ;
4040
4141 // Authorized API Client
42- fakeConfiguration = new Configuration ( ) ;
43- fakeConfiguration . BasePath = "https://voice.bandwidth.com/api/v2" ;
44- fakeConfiguration . Username = Environment . GetEnvironmentVariable ( "BW_USERNAME " ) ;
45- fakeConfiguration . Password = Environment . GetEnvironmentVariable ( "BW_PASSWORD " ) ;
46- conferenceApiInstance = new ConferencesApi ( fakeConfiguration ) ;
47- callsApiInstance = new CallsApi ( fakeConfiguration ) ;
42+ configuration = new Configuration ( ) ;
43+ configuration . BasePath = "https://voice.bandwidth.com/api/v2" ;
44+ configuration . OAuthClientId = Environment . GetEnvironmentVariable ( "BW_CLIENT_ID " ) ;
45+ configuration . OAuthClientSecret = Environment . GetEnvironmentVariable ( "BW_CLIENT_SECRET " ) ;
46+ conferenceApiInstance = new ConferencesApi ( configuration ) ;
47+ callsApiInstance = new CallsApi ( configuration ) ;
4848
4949 // Unauthorized API Client
50- fakeConfiguration . Username = "badUsername" ;
51- fakeConfiguration . Password = "badPassword" ;
52- unauthorizedInstance = new ConferencesApi ( fakeConfiguration ) ;
50+ configuration . Username = "badUsername" ;
51+ configuration . Password = "badPassword" ;
52+ unauthorizedInstance = new ConferencesApi ( configuration ) ;
5353
5454 // Forbidden API Client
55- fakeConfiguration . Username = Environment . GetEnvironmentVariable ( "BW_USERNAME_FORBIDDEN" ) ;
56- fakeConfiguration . Password = Environment . GetEnvironmentVariable ( "BW_PASSWORD_FORBIDDEN" ) ;
57- forbiddenInstance = new ConferencesApi ( fakeConfiguration ) ;
55+ configuration . Username = Environment . GetEnvironmentVariable ( "BW_USERNAME_FORBIDDEN" ) ;
56+ configuration . Password = Environment . GetEnvironmentVariable ( "BW_PASSWORD_FORBIDDEN" ) ;
57+ forbiddenInstance = new ConferencesApi ( configuration ) ;
5858
59- restClient = new ApiClient ( basePath : "https://voice.bandwidth.com/api/v2" ) ;
59+ restClient = new ApiClient ( basePath : "https://voice.bandwidth.com/api/v2" ) ;
6060
6161 updateConferenceBody = new UpdateConference (
6262 status : ConferenceStateEnum . Active ,
@@ -159,7 +159,7 @@ public Tuple<string, string> CreateConferenceTest()
159159 /// <returns>
160160 /// A string containing the status of the test requested.
161161 /// </returns>
162-
162+
163163 public string GetTestStatus ( string testId )
164164 {
165165 var options = new RequestOptions
@@ -175,7 +175,7 @@ public string GetTestStatus(string testId)
175175 path : Environment . GetEnvironmentVariable ( "MANTECA_BASE_URL" ) + "/tests/" + testId ,
176176 options : options
177177 ) ;
178-
178+
179179 return response . Content . ToString ( ) ;
180180 }
181181
@@ -185,7 +185,7 @@ public string GetTestStatus(string testId)
185185 [ Fact ]
186186 public void testConferenceAndMembers ( )
187187 {
188- Tuple < string , string > createCoferenceResponse = CreateConferenceTest ( ) ;
188+ Tuple < string , string > createCoferenceResponse = CreateConferenceTest ( ) ;
189189 var testId = createCoferenceResponse . Item1 ;
190190 var conferenceId = createCoferenceResponse . Item2 ;
191191
@@ -198,7 +198,7 @@ public void testConferenceAndMembers()
198198 Assert . Equal ( HttpStatusCode . OK , getConferenceResponse . StatusCode ) ;
199199 Assert . Equal ( conferenceId , getConferenceResponse . Data . Id ) ;
200200 Assert . IsType < string > ( getConferenceResponse . Data . Name ) ;
201-
201+
202202 var callId = getConferenceResponse . Data . ActiveMembers [ 0 ] . CallId ;
203203
204204 var GetConferenceMemberResponse = conferenceApiInstance . GetConferenceMemberWithHttpInfo ( accountId , conferenceId , callId ) ;
@@ -222,16 +222,16 @@ public void testConferenceAndMembers()
222222 ) ;
223223 // hang up call
224224 callsApiInstance . UpdateCall ( accountId , callId , updateCall ) ;
225- }
225+ }
226226
227227 /// <summary>
228228 /// Test Conference Recordings
229229 /// Tests a successful flow of creating a call with a recording.
230230 /// </summary>
231- [ Fact ( Skip = "PV Issue" ) ]
231+ [ Fact ( Skip = "PV Issue" ) ]
232232 public void testConferenceRecordings ( )
233233 {
234- Tuple < string , string > createCoferenceResponse = CreateConferenceTest ( ) ;
234+ Tuple < string , string > createCoferenceResponse = CreateConferenceTest ( ) ;
235235 var testId = createCoferenceResponse . Item1 ;
236236 var conferenceId = createCoferenceResponse . Item2 ;
237237 var listConferencesResponse = conferenceApiInstance . ListConferencesWithHttpInfo ( accountId ) ;
@@ -274,7 +274,7 @@ public void testConferenceRecordings()
274274
275275 var recordingMediaResponse = conferenceApiInstance . DownloadConferenceRecordingWithHttpInfo ( accountId , conferenceId , firstRecordingId ) ;
276276 Assert . Equal ( HttpStatusCode . OK , recordingMediaResponse . StatusCode ) ;
277- }
277+ }
278278
279279 /// <summary>
280280 /// Test List Conferences Unauthorized
@@ -403,7 +403,7 @@ public void GetConferenceRecordingForbiddenRequest()
403403 public void GetConferenceRecordingNotFound ( )
404404 {
405405 ApiException exception = Assert . Throws < ApiException > ( ( ) => conferenceApiInstance . GetConferenceRecordingWithHttpInfo ( accountId , testConferenceId , testRecordingId ) ) ;
406- Assert . Equal ( 404 , exception . ErrorCode ) ;
406+ Assert . Equal ( 404 , exception . ErrorCode ) ;
407407 }
408408
409409 /// <summary>
@@ -429,7 +429,7 @@ public void UpdateConferenceForbiddenRequest()
429429 /// <summary>
430430 /// Test Update Conference Not Found
431431 /// </summary>
432- [ Fact ( Skip = "PV Issue" ) ]
432+ [ Fact ( Skip = "PV Issue" ) ]
433433 public void UpdateConferenceNotFoundRequest ( )
434434 {
435435 ApiException exception = Assert . Throws < ApiException > ( ( ) => conferenceApiInstance . UpdateConferenceWithHttpInfo ( accountId , testConferenceId , updateConferenceBody ) ) ;
@@ -460,7 +460,7 @@ public void UpdateConferenceBxmlForbiddenRequest()
460460 /// <summary>
461461 /// Test Update Conference BXML Not Found
462462 /// </summary>
463- [ Fact ( Skip = "PV Issue" ) ]
463+ [ Fact ( Skip = "PV Issue" ) ]
464464 public void UpdateConferenceBxmlNotFoundRequest ( )
465465 {
466466 ApiException exception = Assert . Throws < ApiException > ( ( ) => conferenceApiInstance . UpdateConferenceBxmlWithHttpInfo ( accountId , testConferenceId , testUpdateBxml ) ) ;
@@ -490,7 +490,7 @@ public void UpdateConferenceMemberForbiddenRequest()
490490 /// <summary>
491491 /// Test Update Conference Member Not Found
492492 /// </summary>
493- [ Fact ( Skip = "PV Issue" ) ]
493+ [ Fact ( Skip = "PV Issue" ) ]
494494 public void UpdateConferenceMemberNotFoundRequest ( )
495495 {
496496 ApiException exception = Assert . Throws < ApiException > ( ( ) => conferenceApiInstance . UpdateConferenceMember ( accountId , testConferenceId , testMemberId , updateConferenceMember ) ) ;
0 commit comments