Esempio n. 1
0
 public void Initialize()
 {
     _timer = new Mock<ThreadingTimerWrapper>();
     _settings=new WatchDogTimerSettings(10000);
     _watchDog = new WatchDogTimer(_timer.Object, _settings);
     _tokenSource=new Mock<CancellationTokenSourceWrapper>();
 }
Esempio n. 2
0
 internal CMProxyState(CMProxy proxy)
 {
     _proxy          = proxy;
     _ardResponseFac = new ArduinoResponseFactory();
     Wdt             = new WatchDogTimer(Callback);
     Wdt.LimitTime   = WdtLimitTime;
 }
Esempio n. 3
0
 public void Initialize()
 {
     _timer       = new Mock <ThreadingTimerWrapper>();
     _settings    = new WatchDogTimerSettings(10000);
     _watchDog    = new WatchDogTimer(_timer.Object, _settings);
     _tokenSource = new Mock <CancellationTokenSourceWrapper>();
 }