Exemple #1
0
        public void TestInitDPGrp01()
        {
            Accessor ctlAccessor = ReflectionAccessor.Wrap(dataPointGroupController);

            ctlAccessor.SetField("m_DataPointCfgNameList", null);

            //test : catch exception
            dataPointGroupController.InitDPGrp();
        }
Exemple #2
0
        public void TestInitDPGrp02()
        {
            ViewManager.GetInstance().RegisterViewFactory(new TrendingViewFactory());
            IView view = ViewManager.GetInstance().GetView(TrendViewConst.LoadConfigDataPoint, TestConst.TEST_VIEW_ID);

            dataPointGroupController = (DataPointGroupController)(view.getController());
            dataPointGroupController.SetFormType(FormType.Load);
            dataPointGroupController.InitDPGrp();
        }
Exemple #3
0
        public void FixtureSetUp()
        {
            ViewManager.GetInstance().RegisterViewFactory(new TrendingViewFactory());
            IView view = ViewManager.GetInstance().GetView(TrendViewConst.LoadConfigDataPoint, TestConst.TEST_VIEW_ID);

            dataPointGroupController = (DataPointGroupController)(view.getController());

            dataPointGroupController.SetFormType(FormType.Load);

            dataPointGroupController.InitDPGrp();
            DAO.Trending.Common.DBConnectionStrings.GetInstance().AddConnectionString(TestConst.CONNECTION_STR);
            DAO.Trending.Common.SimpleDatabase.GetInstance().OpenConnection();
        }