// GET: Employes/Details/5 public ActionResult Details(int id) { try { return(View("Details", manager.GetEmploye(id))); } catch (EntityNotFoundException) { return(View("Errors/Erreur404")); } }
public void TestGetByIdEmployee() { Employe emp = manager.GetEmploye(1); Assert.IsNotNull(emp); Assert.IsInstanceOfType(emp, typeof(Employe)); }