Exemplo n.º 1
0
        public void TestAddMarker()
        {
            MarkerListModel model = new MarkerListModel();

            markerListController.SetMarkerTable(model.GetMarkerListByGrp(TestConst.MARK_GROUP_NAME));
            markerListController.SetGrpName(TestConst.MARK_GROUP_NAME);
            markerListController.AddMarker(null, null);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }