Skip to content

Commit 95e92ea

Browse files
committed
Add Test to check that state is Active by default
1 parent b38ad0e commit 95e92ea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Bandwidth.StandardTests/Voice/ModelTests.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,5 +95,16 @@ public void SerializeMachineDetectionConfigurationUnsetMachineSpeechEndThreshold
9595
var json = JsonConvert.SerializeObject(machineDetectionConfiguration);
9696
Assert.Equal("{\"mode\":\"async\",\"detectionTimeout\":3.2,\"silenceTimeout\":5.6,\"speechThreshold\":1.2,\"speechEndThreshold\":7.6,\"delayResult\":false,\"callbackUrl\":\"https://www.example.com/\",\"callbackMethod\":\"GET\",\"fallbackUrl\":\"https://www.example-fallback.com/\",\"fallbackMethod\":\"GET\",\"username\":\"neato-username\",\"password\":\"neato-password\",\"fallbackUsername\":\"neato-username-fallback\",\"fallbackPassword\":\"neato-password-fallback\"}", json);
9797
}
98+
99+
[Fact]
100+
public void CheckModifyCallRequestCallStateStatus()
101+
{
102+
var modifyCallRequest = new ModifyCallRequest
103+
{
104+
RedirectUrl = "http://www.myServer.com/fake/callback/url"
105+
};
106+
107+
Assert.Equal(StateEnum.Active, modifyCallRequest.State);
108+
}
98109
}
99110
}

0 commit comments

Comments
 (0)