示例#1
0
 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);
     }
 }
示例#2
0
        public ActionResult Edit(int id)
        {
            var crisisContact = logics.GetCrisisContactDisplay(id);

            return(this.View(crisisContact));
        }