Beispiel #1
0
        public void RemovePlane()
        {
            myExecutionRepository.RemovePlane(myExecutionRepository.GetCurrent(), "1000");
            myPlaneRepository.Delete("Prueba");

            Assert.IsTrue(myExecutionRepository.GetCurrent().ExecutionPlane.All(item => item.IdPlane != "1000"));
        }
Beispiel #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());
     }
 }
Beispiel #3
0
 public void Delete()
 {
     myPlaneRepository.Delete("Prueba");
     Assert.IsTrue(myPlaneRepository.GetAll().All(item => !item.Name.Equals("Prueba")));
 }