protected void SetProcessStepEndTime(string endTime, MashTun mashTun, Brew brew,
                                             MashTunProcessParameters paramToCheck,
                                             MashTunProcessParameters paramToChange,
                                             IMashTunState newState)
        {
            string brandName         = brew.BrandName;
            string paramToCheckValue = brew.GetProcessParameterValue(ProcessEquipment.MashTun,
                                                                     paramToCheck.ToString());

            //Complete process step
            if (brandName.Length > 0 &&
                paramToCheckValue.Length > 0)
            {
                Brew   nBrew     = mashTun.Brew;
                string paramName = paramToChange.ToString();
                nBrew.SetProcessParameterValue(ProcessEquipment.MashTun, paramName, endTime);

                //Set new state
                //string newStateString =
                mashTun.SetState(newState);
                //Console.WriteLine("New state is: " + newStateString);
            }
        }
        public void StartMashingIn(string paramText, string startTime, MashTun mashTun, Brew brew)
        {
            string brewNumber              = brew.BrewNumber;
            string brandName               = brew.BrandName;
            string mashTunBrewNumber       = mashTun.Brew.BrewNumber;
            MashTunProcessParameters param = MashTunProcessParameters.MashingInStartTime;
            string paramName               = param.ToString();

            //Start Mashing In9
            if (brandName.Length > 0 &&
                brewNumber.Length > 0 &&
                brewNumber == mashTunBrewNumber &&
                paramText.Equals("Tranpsort Time - Finish"))
            {
                mashTun.Brew.SetProcessParameterValue(ProcessEquipment.MashTun, paramName, startTime);

                string mashingInTime = brew.GetProcessParameterValue(ProcessEquipment.MashTun,
                                                                     MashTunProcessParameters.MashingInStartTime.ToString());
                Console.WriteLine("Mash Tun mashingInTime: " + mashingInTime);

                //Set new state
                mashTun.SetState(mashTun.MashingInState);
            }
        }