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