protected override void GivenOverride() { /*force it to go into confirmed state*/ ServerDialog.SetLastResponse(CreateRingingResponse()); ServerDialog.SetLastResponse(CreateOkResponse()); ServerDialog.State.Should().Be(DialogState.Confirmed); /*required assertion*/ }
protected override void When() { /*force it to go into early state*/ _ringingResponse = CreateRingingResponse(); ServerDialog.SetLastResponse(_ringingResponse); ServerDialog.State.Should().Be(DialogState.Early); /*required assertion*/ }
protected override void When() { try { var okResponse = CreateOkResponse(); ServerDialog.SetLastResponse(okResponse); } catch (Exception) { _thrown = true; } }
protected override void When() { var ringingResponse = CreateRingingResponse(); ServerDialog.SetLastResponse(ringingResponse); }
protected override void When() { _okResponse = CreateOkResponse(); ServerDialog.SetLastResponse(_okResponse); }
protected override void When() { _busyHereResponse = CreateBusyHereResponse(); ServerDialog.SetLastResponse(_busyHereResponse); }