protected override void GivenOverride()
 {
     //((SipAbstractServerTransaction) Stx).Initialize();
     _provisionalResponse = CreateProvisionalResponse();
     Stx.SendResponse(_provisionalResponse);
     Stx.State.Should().Be(SipInviteServerTransaction.ProceedingState); /*assertion*/
 }
Пример #2
0
 protected override void GivenOverride()
 {
     //((SipAbstractServerTransaction) Stx).Initialize();
     _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily");
     Stx.SendResponse(_non200FinalResponse);
     Stx.State.Should().Be(SipInviteServerTransaction.CompletedState); /*required assertion*/
 }
Пример #3
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()
 {
     _finalResponse = CreateFinalResponse();
     Stx.SendResponse(_finalResponse);
 }
Пример #5
0
 protected override void When()
 {
     _provisionalResponse = CreateProvisionalResponse();
     Stx.SendResponse(_provisionalResponse);
 }
 protected override void GivenOverride()
 {
     _response = CreateProvisionalResponse();
     Stx.SendResponse(_response);                                          /*force it to go into state*/
     Stx.State.Should().Be(SipNonInviteServerTransaction.ProceedingState); /*required assertion*/
 }
 protected override void When()
 {
     _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily");
     Stx.SendResponse(_non200FinalResponse);
 }
 protected override void GivenOverride()
 {
     _txId = Stx.GetId();
     Stx.SendResponse(CreateFinalResponse()); /*go into state*/
 }
Пример #9
0
 protected override void When()
 {
     _mostRecentResponse = CreateFinalResponse(202, "accepted");
     Stx.SendResponse(_mostRecentResponse);
 }
Пример #10
0
 protected override void When()
 {
     _mostRecentResponse = CreateProvisionalResponse(181, "Call Is Being Forwarded");
     Stx.SendResponse(_mostRecentResponse);
 }