示例#1
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.DataPointList, TestConst.TEST_VIEW_ID);

            dataPointListController = (DataPointListController)(view.getController());
            dataPointListController.InitDataPointTableColumn();

            DataPointListModel model = new DataPointListModel();

            dataPointListController.FillDataPointTable(model.GetDPListByGrp(TestConst.GROUP_NAME)); //will call setDataPointRowByEty
            dataPointListController.SetGrpName(TestConst.GROUP_NAME);
        }
示例#2
0
 public void TestSetGrpName()
 {
     dataPointListController.SetGrpName(TestConst.GROUP_NAME);
 }