public void TestResetTimleft() { JobTemplate newTemplate = GetNewTemplate(); _service.Cancel(); _service.SetJobTemplate(newTemplate); Assert.AreEqual(30, _service.GetMicroWave().TimeLeft); _service.ResetTimeleft(DateTime.MinValue.AddSeconds(1)); Assert.AreEqual(1, _service.GetMicroWave().CurrentJob.TimeLeft); }
private void dtpTimer_ValueChanged(object sender, EventArgs e) { if (_timerReadOnly) { WrapVoid(() => _service.ResetTimeleft(dtpTimer.Value)); } }