예제 #1
0
        public void Create_DeleteRoadMapsTest()
        {
            RoadMaps Maps = new RoadMaps();

            Assert.IsTrue(Maps.CreateRoadMap("New", "NEW", "123"));

            Assert.IsTrue(Maps.DeleteRoadMap("New"));
        }
예제 #2
0
 public void newroadmap(object sender, EventArgs e)
 {
     try {
         RoadMaps nRoadmap = new RoadMaps();
         if (roadmap_Name.Value != "")
         {
             nRoadmap.CreateRoadMap(roadmap_Name.Value.ToString(), roadmap_Desc.Value.ToString(), mUser.GetUserName());
             Response.Redirect("Roadmap.aspx?n=" + roadmap_Name.Value, false);
         }
     } catch {
         System.Windows.Forms.MessageBox.Show("ERROR: Roadmap with name already exists! Please rename and try again");
     }
 }