コード例 #1
0
        public void SaveMarkerListToGroup(List <EtyMarker> markerList, string grpName)
        {
            MarkerDAO markerDAO = new MarkerDAO();

            //do it in a transaction:
            markerDAO.SaveMarkerListToGrp(markerList, grpName);

            //markerDAO.DeleteAllMarkerInGrp(grpName);
            //markerDAO.InsertMarkerListToGrp(markerList, grpName);
        }
コード例 #2
0
        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);
        }