public void TestResetPotency() { JobTemplate newTemplate = GetNewTemplate(); _service.Cancel(); _service.SetJobTemplate(newTemplate); Assert.AreEqual(Potency.Eight, _service.GetMicroWave().Potency); _service.ResetPotency(10); Assert.AreEqual(Potency.Ten, _service.GetMicroWave().CurrentJob.Potency); }
private void txtPotency_ValueChanged(object sender, EventArgs e) { WrapVoid(() => _service.ResetPotency(txtPotency.Value)); }