public void SaveFormulaListToGroup(List <EtyFormula> formulaList, string grpName)
        {
            FormulaerDAO formulaDAO = new FormulaerDAO();

            //do it in a transaction:
            formulaDAO.SaveFormulaListToGrp(formulaList, grpName);

            //formulaDAO.DeleteAllFormulaInGrp(grpName);
            //formulaDAO.InsertFormulaListToGrp(formulaList, grpName);
        }
Beispiel #2
0
        public void Test_Delete_Insert_Get_FormulaList()
        {
            string grpName = "UnitTestFormulaGrp";

            formulaerDAO.DeleteAllFormulaInGrp(grpName);

            List <EtyFormula> formulaList = new List <EtyFormula>();
            EtyFormula        formula1    = new EtyFormula();

            formula1.DPLblName  = "Lbl1";
            formula1.DPEquation = "equationStr1";

            EtyFormula formula2 = new EtyFormula();

            formula2.DPEquation = "equationStr2";
            formula2.DPLblName  = "Lbl2";
            formulaList.Add(formula1);
            formulaList.Add(formula2);

            //formulaerDAO.InsertFormulaListToGrp(formulaList, grpName);
            formulaerDAO.SaveFormulaListToGrp(formulaList, grpName);

            formulaerDAO.GetFormulasByCfgName(grpName);
        }