Skip to content

Commit 52967e2

Browse files
Merge pull request #55 from Bandwidth/DX-2619
DX-2619 Fixed default State in ModifyCallRequest payload
2 parents d8acb44 + 95e92ea commit 52967e2

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

Bandwidth.Standard/Voice/Models/ModifyCallRequest.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ public class ModifyCallRequest
4444
{ "tag", false },
4545
};
4646

47-
/// <summary>
48-
/// Initializes a new instance of the <see cref="ModifyCallRequest"/> class.
49-
/// </summary>
50-
public ModifyCallRequest()
51-
{
52-
}
53-
5447
/// <summary>
5548
/// Initializes a new instance of the <see cref="ModifyCallRequest"/> class.
5649
/// </summary>

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)