public When_in_completed_state_the_end_timer_has_fired() { var tf = new TimerFactoryStub(); tf.CreateNonInviteStxEndCompletedTimerInterceptor = (a) => new TxTimerStub(a, 2000, false, AfterCallBack); TimerFactory = tf; }
protected SoftPhoneSpecificationBase() { _testClientUaUri = TestConstants.EndPoint1Uri; _testClientUaEndPoint = TestConstants.IpEndPoint1; _phoneUaUri = TestConstants.EndPoint2Uri; _phoneUaEndPoint = TestConstants.IpEndPoint2; _timerFactory = new TimerFactoryStubBuilder().Build(); _stateProvider = CreateStateProviderMock(); }
public When_in_completed_state_the_end_timer_has_fired() { var tf = new TimerFactoryStub(); tf.CreateNonInviteCtxRetransmitTimerInterceptor = (a) => new TxTimerBuilder().WithCallback(a).Build(); tf.CreateNonInviteCtxEndCompletedTimerInterceptor = (a) => new TxTimerStub(a, 2000, false, AfterCallBack); tf.CreateNonInviteCtxTimeOutTimerInterceptor = CreateDoNothingTimerStub; TimerFactory = tf; }
protected When_in_state_base() : base() { var tf = new TimerFactoryStub(); tf.CreateInviteCtxRetransmitTimerInterceptor = CreateInviteCtxRetransmitTimer; tf.CreateInviteCtxEndCompletedTimerInterceptor = CreateInviteCtxCompletedEndTimer; tf.CreateInviteCtxTimeOutTimerInterceptor = CreateInviteCtxTimeOutTimer; TimerFactory = tf; }
public When_in_trying_state_a_timeout_has_occured() { _timeOutWaitHandle = new AutoResetEvent(false); var tf = new TimerFactoryStub(); tf.CreateNonInviteCtxRetransmitTimerInterceptor = (a) => new TxTimerBuilder().WithCallback(a).Build(); tf.CreateNonInviteCtxEndCompletedTimerInterceptor = (a) => new TxTimerBuilder().WithCallback(a).Build(); tf.CreateNonInviteCtxTimeOutTimerInterceptor = (a) => new TxTimerStub(a, 1000, false, AfterCallBack); TimerFactory = tf; }
public TxSpecificationBase() { Sender = new Mock <ISipMessageSender>(); Listener = new Mock <ISipListener>(); TxTable = new SipServerTransactionTable(); Request = new SipRequestBuilder().Build(); var tf = new TimerFactoryStub(); tf.CreateNonInviteStxEndCompletedTimerInterceptor = CreateDefaultNonInviteStxEndCompletedTimer; TimerFactory = tf; }