Ejemplo n.º 1
0
        protected override void GivenOverride()
        {
            _call = _phone.CreateCall();
            _call.CallErrorOccured += (s, e) => _callError = e.Item;
            _call.CallStateChanged += (s, e) => _callState = e.Item;
            _call.Start(_testClientUaUri.FormatToString());
            _waitingforInviteReceived.WaitOne();

            _phone.InternalState.Should().Be(_stateProvider.GetWaitProvisional()); /*required assertion*/
        }
Ejemplo n.º 2
0
 void callAlice_ErrorOccured(object sender, VoipEventArgs<CallErrorObject> e)
 {
     _callErrorAlice = e.Item;
     OnAliceErrorOccured();
 }
Ejemplo n.º 3
0
 private void callBob_ErrorOccured(object sender, VoipEventArgs<CallErrorObject> e)
 {
     _callErrorBob = e.Item;
     OnBobErrorOccured();
 }
Ejemplo n.º 4
0
 protected override void _calleePhone_IncomingCall(object sender, VoipEventArgs<IPhoneCall> e)
 {
     _incomingCall = e.Item;
     _incomingCall.CallStateChanged += (s, e1) => _callState = e1.Item;
     _incomingCall.CallErrorOccured += (s, e2) => _callError = e2.Item;
 }