Ejemplo n.º 1
0
        public void RemovePlane()
        {
            myExecutionRepository.RemovePlane(myExecutionRepository.GetCurrent(), "1000");
            myPlaneRepository.Delete("Prueba");

            Assert.IsTrue(myExecutionRepository.GetCurrent().ExecutionPlane.All(item => item.IdPlane != "1000"));
        }
Ejemplo n.º 2
0
 public ActionResult Delete(string name)
 {
     try
     {
         _LoggingService.Write("PlaneController (DeletePlane) page access", true);
         _PlaneRepository.Delete(name);
         return(RedirectToAction("Index", "Home"));
     }
     catch (Exception ex)
     {
         _LoggingService.WriteWithInner(ex, true, "PlaneController(Delete) error: ");
         return(new HttpNotFoundResult());
     }
 }
Ejemplo n.º 3
0
 public void Delete()
 {
     myPlaneRepository.Delete("Prueba");
     Assert.IsTrue(myPlaneRepository.GetAll().All(item => !item.Name.Equals("Prueba")));
 }