Пример #1
0
        public void FixtureSetUp()
        {
            markerList = new MarkerList();
            MarkerListController ctl = new MarkerListController();

            ctl.initMarkerTable();

            List <EtyMarker> list = new List <EtyMarker>();

            ctl.SetMarkerTable(list);
            ctl.SetGrpName("Test_GrpName");

            markerList.AttachController(ctl);
            ctl.AttachCallBack(null, markerList);
        }
Пример #2
0
        public void FixtureSetUp()
        {
            if (DBConnectionStrings.GetInstance().GetConnectionStrings().Count < 1)
            {
                DBConnectionStrings.GetInstance().AddConnectionString(TestConst.CONNECTION_STR);
                SimpleDatabase.GetInstance().OpenConnection();
            }
            SimpleDatabase.GetInstance().OpenConnection();
            ViewManager.GetInstance().RegisterViewFactory(new TrendingViewFactory());
            IView view = ViewManager.GetInstance().GetView(TrendViewConst.MarkerList, TestConst.TEST_VIEW_ID);

            markerListController = (MarkerListController)(view.getController());
            markerListController.initMarkerTable();
            MarkerListModel model = new MarkerListModel();

            markerListController.SetMarkerTable(model.GetMarkerListByGrp(TestConst.MARK_GROUP_NAME));
            markerListController.SetGrpName(TestConst.MARK_GROUP_NAME);
        }