public void Timer_TimeExpires() { _timer = new BlindTimer(1); _timer.Start(); Thread.Sleep(5000); Assert.AreEqual(0, _timer.SecondsRemaining()); }
public void Timer_CanStart() { _timer = new BlindTimer(10); _timer.Start(); Thread.Sleep(1100); Assert.AreEqual(9, _timer.SecondsRemaining()); }
public BlindController(Blind blind) { BlindTimer = new BlindTimer((Blind.Interval * 60 * 1000)); }