Beispiel #1
0
 public void Update_Void_Success()
 {
     Mock.Get(_housingRepository).Setup(x => x.Get(_housing.Id)).Returns(_housing);
     _housingService.Update(_housing);
 }
Beispiel #2
0
 public ActionResult Update(HousingItem housing)
 {
     Access.CheckAccess("Housing.Updater");
     _housingService.Update(housing);
     return(RedirectToAction("Index", new { id = housing.Id }));
 }