public void PeriodAddBrewTestCase() { //CreateAndAddPeriodTestCase(); XlDatasource xlDatasource = new XlDatasource(connectionString, templateFilePath); xlDatasource.LoadPeriods(); Brew brew = new Brew("01.01.2018", "Amstel", "AM18007"); brew.SetProcessParameterValue(ProcessEquipment.MashCopper, MashCopperProcessParameters.MashingInStartTime.ToString(), "01.01.2018 12:00:00"); string month = brew.Month; //Assert.AreEqual("January", brew.Month); Period period = xlDatasource.GetPeriod("2018", Month.January); int oldBrewCount = period.Brews.Count; period.AddBrew(brew); //Assert.AreEqual("2018", brew.Year); Assert.AreEqual("2018-January", period.PeriodName); Assert.AreEqual(oldBrewCount + 1, period.Brews.Count); }