Exemple #1
0
 // GET: Project/Details/5
 public ActionResult Details(int id)
 {
     if (logic.GetProjectByID(id) != null)
     {
         return(View(logic.GetProjectByID(id)));
     }
     else
     {
         return(HttpNotFound());
     }
 }
        public void GetProjectByID()
        {
            Random r = new Random();
            int    x = r.Next(1, 4);

            Assert.AreEqual(x, pl.GetProjectByID(x).ID);
        }