Beispiel #1
0
        public void Find_ReturnsTrailInDataBase_Trail()
        {
            Trail testTrail = new Trail("TrailName1", 1, 2.5f, 3, true, true, true, true, true, true);

            testTrail.Save();
            Trail foundTrail = Trail.Find(testTrail.GetId());

            Assert.AreEqual(testTrail, foundTrail);
        }
        public ActionResult Show(int id)
        {
            Trail foundTrail = Trail.Find(id);

            return(View(foundTrail));
        }