Exemplo n.º 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.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);
        }
Exemplo n.º 2
0
 public void TestSetFormType_GetFormType()
 {
     markerDataController.SetFormType(markerDataController.GetFormType());
 }