public RetryAction(IRetryTimerFactory retryTimerFactory)
 {
     _retryTimerFactory = retryTimerFactory;
     _timeoutLimit      = TimeSpan.FromSeconds(5);
     _until             = () => true;
     _action            = () => { throw new InvalidOperationException("No state changing action defined."); };
 }
Example #2
0
 public Retrier(IRetryTimerFactory retryTimerFactory)
 {
     this.retryTimerFactory = retryTimerFactory;
     this.timeoutLimit = TimeSpan.FromSeconds(5);
     this.until = () => true;
     this.action = () => { throw new InvalidOperationException("No state changing action defined."); };
 }
 public RetryAction(IRetryTimerFactory retryTimerFactory)
 {
     _retryTimerFactory = retryTimerFactory;
     _timeoutLimit = TimeSpan.FromSeconds(5);
     _until = () => true;
     _action = () => { throw new InvalidOperationException("No state changing action defined."); };
 }
        public void Before()
        {
            this.hWnd = new IntPtr(1337);
            this.innerMouse = A.Fake<IMouse>();
            this.nativeMethodWrapper = A.Fake<INativeMethodWrapper>();
            this.retrierFactory = new NRetryTimerFactory(0);
            this.retrier = new Retrier(this.retrierFactory);

            this.windowRelativeMouse = new WindowRelativeMouse(this.hWnd, this.hWnd, this.innerMouse, this.nativeMethodWrapper, this.retrier);
        }