Skip to content

Commit e655f85

Browse files
committed
Make em go in order
1 parent abdd7be commit e655f85

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

src/Bandwidth.Standard.Test/Integration/TranscriptionsIntegrationTests.cs

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,11 @@ public void InstanceTest()
121121
Assert.IsType<TranscriptionsApi>(transcriptionsApiInstance);
122122
}
123123

124-
[Fact]
125-
public void CreateCallTranscription()
124+
private void CreateCallTranscription()
126125
{
127126
string startTranscriptionBxml = $"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response><StartTranscription name=\"{mantecaCallBody.Tag}\" tracks=\"inbound\"></StartTranscription><Pause duration=\"6\"/></Response>";
128127
string stopTranscriptionBxml = $"<?xml version=\"1.0\" encoding=\"UTF-8\"?><Response><StopTranscription name=\"{mantecaCallBody.Tag}\"></StopTranscription></Response>";
129-
UpdateCall updateCallBody = new UpdateCall();
128+
UpdateCall updateCallBody = new UpdateCall(state: CallStateEnum.Completed);
130129

131130
// Create the call
132131
CreateCallResponse createCallResponse = callsApiInstance.CreateCall(accountId, mantecaCallBody);
@@ -146,25 +145,30 @@ public void CreateCallTranscription()
146145

147146
// End the call
148147
callsApiInstance.UpdateCall(accountId, testCallId, updateCallBody);
149-
150148
}
151149

152-
[Fact]
153-
public void ListRealTimeTranscriptions()
150+
private void ListRealTimeTranscriptions()
154151
{
155-
Assert.True(false);
152+
156153
}
154+
private void GetRealTimeTranscription()
155+
{
157156

158-
[Fact]
159-
public void GetRealTimeTranscription()
157+
}
158+
159+
private void DeleteRealTimeTranscription()
160160
{
161161

162162
}
163163

164+
// Need these to run in a specific order
164165
[Fact]
165-
public void DeleteRealTimeTranscription()
166+
public void TestTranscriptionsSuccess()
166167
{
167-
168+
CreateCallTranscription();
169+
ListRealTimeTranscriptions();
170+
GetRealTimeTranscription();
171+
DeleteRealTimeTranscription();
168172
}
169173
}
170174
}

0 commit comments

Comments
 (0)