Пример #1
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);
        }
        public List <EtyFormula> GetFormulaListByGrp(string grpName)
        {
            FormulaerDAO formulaDAO = new FormulaerDAO();

            return(formulaDAO.GetFormulasByCfgName(grpName));
        }