public TimerFactoryMockBuilder()
        {
            _nonInviteCtxLeaveCompleted = CreateDoNothingTimer();
            _nonInviteCtxRetransmit = CreateDoNothingTimer();
            _nonInviteCtxTimeout = CreateDoNothingTimer();

            _inviteCtxLeaveCompleted = CreateDoNothingTimer();
            _inviteCtxRetransmit = CreateDoNothingTimer();
            _inviteCtxTimeout = CreateDoNothingTimer();
        }
Exemple #2
0
 public TxTimerStub(Action realCallBack, int interval, bool isPeriodic, Action afterCallBack)
 {
     _realCallBack = realCallBack;
     _afterCallBack = afterCallBack ?? delegate { };
     _RealTimer = new TxTimer(OnCallBack, interval, isPeriodic);
 }
 public TimerFactoryMockBuilder WithNonInviteCtxTimeout(TxTimer value)
 {
     _nonInviteCtxTimeout = value;
     return this;
 }
 public TimerFactoryMockBuilder WithNonInviteCtxLeaveCompleted(TxTimer value)
 {
     _nonInviteCtxLeaveCompleted = value;
     return this;
 }
 public TimerFactoryMockBuilder WithInviteCtxRetransmit(TxTimer value)
 {
     _inviteCtxRetransmit = value;
     return this;
 }