public void GetCrisisContactDisplayByIdTest() { using (ShimsContext.Create()) { ShimCrisisContactRepo.AllInstances.GetCrisisContactInt32 = (repo, i) => dbContacts[0]; var result = target.GetCrisisContactDisplay(1); Assert.AreEqual("Test 1", result.Name); Assert.AreEqual("(937) 555-5555", result.PhoneNumber); } }
public ActionResult Edit(int id) { var crisisContact = logics.GetCrisisContactDisplay(id); return(this.View(crisisContact)); }