Example #1
0
        public void FixtureSetUp()
        {
            ViewManager.GetInstance().RegisterViewFactory(new TrendingViewFactory());
            formulaList = (FormulaList)(ViewManager.GetInstance().GetView(TrendViewConst.FormulaList, "view_ID"));
            FormulaListController ctl = (FormulaListController)(formulaList.getController());

            ctl.initFormulaTable();
        }
Example #2
0
        public void FixtureSetUp()
        {
            if (DBConnectionStrings.GetInstance().GetConnectionStrings().Count < 1)
            {
                DBConnectionStrings.GetInstance().AddConnectionString(TestConst.CONNECTION_STR);
                SimpleDatabase.GetInstance().OpenConnection();
            }
            ViewManager.GetInstance().RegisterViewFactory(new TrendingViewFactory());
            IView view = ViewManager.GetInstance().GetView(TrendViewConst.FormulaList, TestConst.TEST_VIEW_ID);

            formulaListController = (FormulaListController)(view.getController());
            formulaListController.initFormulaTable();

            FormulaListModel model = new FormulaListModel();

            formulaListController.SetFormulaTable(model.GetFormulaListByGrp(TestConst.FORMULA_GROUP_NAME));
            formulaListController.SetGrpName(TestConst.FORMULA_GROUP_NAME);
        }