public void WhenActualTemp_IsGreaterThanOrEqualToTargetAndElementIsOnAndIsAutoTrue_DisableElement(decimal target, decimal actual, bool isAuto, bool expected)
        {
            IBoiler boiler = new Boiler();

            boiler.TargetTemp  = target;
            boiler.ActualTemp  = actual;
            boiler.IsElementOn = true;
            boiler.IsAuto      = isAuto;

            //BoilerUtils utils = new BoilerUtils();
            bool ret = boiler.DisableOnHighTemp();

            Assert.Equal(boiler.IsElementOn, expected);
        }
        public void When_DisableOnHighTemp_DisablesTheElement_TheLastOffDateIsSet()
        {
            Boiler  b      = new Boiler();
            IBoiler boiler = new Boiler();

            boiler.TargetTemp  = 10;
            boiler.ActualTemp  = 11;
            boiler.IsElementOn = true;
            boiler.IsAuto      = true;

            DateTime dt  = boiler.LastOff;
            bool     ret = boiler.DisableOnHighTemp();

            Assert.True(dt.Ticks < boiler.LastOff.Ticks);
        }
        public void WhenActualTemp_IsGreaterThanOrEqualToTargetAndElementIsOnAndIsAutoTrue_DisableElement(decimal target, decimal actual, bool isAuto, bool expected)
        {
            IBoiler boiler = new Boiler();
            boiler.TargetTemp = target;
            boiler.ActualTemp = actual;
            boiler.IsElementOn = true;
            boiler.IsAuto = isAuto;

            //BoilerUtils utils = new BoilerUtils();
            bool ret = boiler.DisableOnHighTemp();
            Assert.Equal(boiler.IsElementOn, expected);

        }
        public void When_DisableOnHighTemp_DisablesTheElement_TheLastOffDateIsSet()
        {
            Boiler b = new Boiler();
            IBoiler boiler = new Boiler();
            boiler.TargetTemp = 10;
            boiler.ActualTemp = 11;
            boiler.IsElementOn = true;
            boiler.IsAuto = true;

            DateTime dt = boiler.LastOff;
            bool ret = boiler.DisableOnHighTemp();
            Assert.True(dt.Ticks < boiler.LastOff.Ticks);

        }