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