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