public void AddPlane() { Plane myPlane = new Plane(); myPlane.Id = "1000"; myPlane.Name = "Prueba"; myPlane.Description = "Prueba"; myPlane.FileContent = new byte[] { 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20 }; myPlaneRepository.Save(myPlane); myExecutionRepository.AddPlane(myExecutionRepository.GetCurrent(), myPlane.Id); Assert.IsTrue(true); }
public ActionResult Add(string id) { try { _LoggingService.Write("ExecutionController (Add) page access", true); _ExecutionRepository.AddPlane(_ExecutionRepository.GetCurrent(), id); return(RedirectToAction("Index", "Home")); } catch (Exception ex) { _LoggingService.WriteWithInner(ex, true, "ExecutionController(Add) error: "); return(new HttpNotFoundResult()); } }