protected override void GivenOverride() { //((SipAbstractServerTransaction) Stx).Initialize(); _provisionalResponse = CreateProvisionalResponse(); Stx.SendResponse(_provisionalResponse); Stx.State.Should().Be(SipInviteServerTransaction.ProceedingState); /*assertion*/ }
protected override void GivenOverride() { //((SipAbstractServerTransaction) Stx).Initialize(); _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily"); Stx.SendResponse(_non200FinalResponse); Stx.State.Should().Be(SipInviteServerTransaction.CompletedState); /*required assertion*/ }
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); }
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*/ }
protected override void When() { _mostRecentResponse = CreateFinalResponse(202, "accepted"); Stx.SendResponse(_mostRecentResponse); }
protected override void When() { _mostRecentResponse = CreateProvisionalResponse(181, "Call Is Being Forwarded"); Stx.SendResponse(_mostRecentResponse); }