Esempio n. 1
0
        public ActionResult Show(int id)
        {
            Community thisCommunity = Community.Find(id);

            ViewBag.Title = thisCommunity.GetName();
            return(View(thisCommunity));
        }
Esempio n. 2
0
        public void Find_ReturnsCorrectCommunityFromDatabase_Community()
        {
            Community newCommunity = new Community("", "");

            newCommunity.Save();
            Community foundCommunity = Community.Find(newCommunity.GetId());

            Assert.AreEqual(newCommunity, foundCommunity);
        }