예제 #1
0
        protected override void When()
        {
            var ackRequest = new SipRequestBuilder().WithRequestLine(
                new SipRequestLineBuilder().WithMethod(SipMethods.Ack).Build()).Build();

            Stx.ProcessRequest(new SipRequestEventBuilder().WithRequest(ackRequest).Build());
        }
예제 #2
0
        protected override void GivenOverride()
        {
            //((SipAbstractServerTransaction) Stx).Initialize();
            _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily");
            Stx.SendResponse(_non200FinalResponse);
            var ackRequest = new SipRequestBuilder().WithRequestLine(
                new SipRequestLineBuilder().WithMethod(SipMethods.Ack).Build()).Build();

            Stx.ProcessRequest(new SipRequestEventBuilder().WithRequest(ackRequest).Build());
            Stx.State.Should().Be(SipInviteServerTransaction.ConfirmedState); /*required assertion*/
        }
 protected override void When()
 {
     Stx.ProcessRequest(new SipRequestEventBuilder().Build());
 }