public void Test_Delete_Insert_GetMarkGrp() { string markGrpName = "UnitTest_MarkerGrp"; markerDAO.DeleteAllMarkerInGrp(markGrpName); List <EtyMarker> markerList = new List <EtyMarker>(); EtyMarker marker1 = new EtyMarker(); marker1.MarkerEnabled = true; EtyMarker marker2 = new EtyMarker(); marker2.MarkerEnabled = false; marker1.MarkerName = "unitTest_marker1"; marker2.MarkerName = "unitTest_marker2"; markerList.Add(marker1); markerList.Add(marker2); //markerDAO.InsertMarkerListToGrp(markerList, markGrpName); markerDAO.SaveMarkerListToGrp(markerList, markGrpName); markerDAO.GetMarkersByCfgName(markGrpName); markerDAO.DeleteAllMarkerInGrp(markGrpName); }
public List <EtyMarker> GetMarkerListByGrp(string grpName) { MarkerDAO markerDAO = new MarkerDAO(); return(markerDAO.GetMarkersByCfgName(grpName)); }