protected override void When()
        {
            var cb     = new SipContextBuilder().WithResponse(_okResponse).Build();
            var rEvent = new SipResponseEvent(cb);

            ClientDialog.ProcessResponse(rEvent);
        }
Example #2
0
        protected override void When()
        {
            _okResponse = CreateBusyHereResponse();
            var c = new SipContextBuilder().WithResponse(_okResponse).Build();

            ClientDialog.ProcessResponse(new SipResponseEvent(c));
        }
Example #3
0
        protected override void GivenOverride()
        {
            /*force it to go into early state*/
            var ringingResponse = CreateRingingResponse();
            var c = new SipResponseEventBuilder().WithResponse(ringingResponse).WithClientTx(InviteCtx.Object).Build();

            ClientDialog.ProcessResponse(c);
            ClientDialog.State.Should().Be(DialogState.Early); /*required assertion*/
        }
        protected override void GivenOverride()
        {
            /*force it to go into confirmed state*/
            _okResponse = CreateOkResponse();
            _rer        = new SipResponseEventBuilder().WithResponse(CreateRingingResponse()).WithClientTx(InviteCtx.Object).Build();
            _reo        = new SipResponseEventBuilder().WithResponse(_okResponse).WithClientTx(InviteCtx.Object).Build();
            ClientDialog.ProcessResponse(_rer);
            ClientDialog.ProcessResponse(_reo);
            ClientDialog.State.Should().Be(DialogState.Confirmed); /*required assertion*/

            _ackRequest = ClientDialog.CreateAck();
            ClientDialog.SendAck(_ackRequest);  /*sent an ack*/
            _beforeSentSeqNr = ClientDialog.LocalSequenceNr;
        }