Beispiel #1
0
        public void TestInitMarkerData01()
        {
            List <string> markerNameList = new List <string>();

            markerNameList.Add("makerName1");
            markerNameList.Add("makerName2");

            markerDataController.SetFormType(FormType.Edit);
            markerDataController.InitMarkerData(markerNameList);

            markerDataController.SetFormType(FormType.Add);
            markerDataController.InitMarkerData(markerNameList);
        }
Beispiel #2
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.AddMarkerData, TestConst.TEST_VIEW_ID);

            markerDataController = (MarkerDataController)(view.getController());
            //((MarkerData)view).SetFormType(FormType.Add);
            markerDataController.SetFormType(FormType.Add);

            List <string> markerNameList = new List <string>();

            markerNameList.Add("makerName1");
            markerNameList.Add("makerName2");

            markerDataController.InitMarkerData(markerNameList);
        }