Example #1
0
        public When_in_completed_state_the_retransit_timer_fired_5_times()
            : base()
        {
            var tf = new TimerFactoryStubBuilder();

            _originalInterval = 500;
            tf.WithInviteStxRetransmitTimerInterceptor((a) => new TxTimerStub(a, _originalInterval, false, AfterRetransmitFired));
            TimerFactory = tf.Build();
        }
Example #2
0
        public When_in_completed_state_the_endcompleted_timer_fired()
            : base()
        {
            var tf = new TimerFactoryStubBuilder();

            tf.WithInviteStxRetransmitTimerInterceptor((a) => new TxTimerStub(a, 500, false, () => { }));
            tf.WithInviteStxEndCompletedInterceptor((a) => new TxTimerStub(a, 64 * SipConstants.T1, false, AfterEndCompleted));
            TimerFactory = tf.Build();
        }