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); }
public void TestSetGrpName() { dataPointListController.SetGrpName(TestConst.GROUP_NAME); }