Skip to content

Commit b6b1afc

Browse files
committed
Last test fixed
1 parent a26ff5f commit b6b1afc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Bandwidth.Standard.Test/Api/RecordingsApiTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,13 @@ public void GetRecordingTranscriptionTest()
410410
string callId = "c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";
411411
string recordingId = "r-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85";
412412
Transcription transcription = new Transcription(text: "Nice talking to you, friend!", confidence: .9);
413-
TranscriptionList transcriptionList = new TranscriptionList(transcripts: new List<Transcription> { transcription });
413+
RecordingTranscriptions recordingTranscriptions = new RecordingTranscriptions(transcripts: new List<Transcription> { transcription });
414414

415-
var apiResponse = new ApiResponse<TranscriptionList>(HttpStatusCode.OK, transcriptionList);
416-
mockClient.Setup(x => x.Get<TranscriptionList>("/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription", It.IsAny<RequestOptions>(), fakeConfiguration)).Returns(apiResponse);
415+
var apiResponse = new ApiResponse<RecordingTranscriptions>(HttpStatusCode.OK, recordingTranscriptions);
416+
mockClient.Setup(x => x.Get<RecordingTranscriptions>("/accounts/{accountId}/calls/{callId}/recordings/{recordingId}/transcription", It.IsAny<RequestOptions>(), fakeConfiguration)).Returns(apiResponse);
417417
var response = instance.GetRecordingTranscriptionWithHttpInfo(accountId, callId, recordingId);
418418

419-
Assert.IsType<ApiResponse<TranscriptionList>>(response);
419+
Assert.IsType<ApiResponse<RecordingTranscriptions>>(response);
420420
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
421421
}
422422

0 commit comments

Comments
 (0)