Ejemplo n.º 1
0
        public void BrewSaveBrewTestCase()
        {
            //CreateAndAddPeriodTestCase();
            //datasourceHandler.Datasource = datasource;

            XlDatasource xlDatasource = new XlDatasource(connectionString, templateFilePath);

            xlDatasource.LoadPeriods();

            Brew brew = new Brew("01.01.2018", "Amstel", "AM18008");

            brew.SetProcessParameterValue(ProcessEquipment.MashCopper, MashCopperProcessParameters.MashingInStartTime.ToString(), "01.01.2018 12:00:00");
            brew.SetProcessParameterValue(ProcessEquipment.MashCopper, MashCopperProcessParameters.MashingInEndTime.ToString(), "01.01.2018 12:38:00");

            string month = brew.Month;

            brew.Save();
            Period period = xlDatasource.GetPeriod(brew);

            Assert.AreEqual("2018-January", period.PeriodName);
        }
Ejemplo n.º 2
0
 //State events
 public void StartMashingIn(Brew brew, string paramText, string startTime)
 {
     _currentState.StartMashingIn(paramText, startTime, this, brew);
     _brew.Save();
 }