public ActionResult Show(int id) { Community thisCommunity = Community.Find(id); ViewBag.Title = thisCommunity.GetName(); return(View(thisCommunity)); }
public void Find_ReturnsCorrectCommunityFromDatabase_Community() { Community newCommunity = new Community("", ""); newCommunity.Save(); Community foundCommunity = Community.Find(newCommunity.GetId()); Assert.AreEqual(newCommunity, foundCommunity); }