public void EcommerceSettingsController_EditPOST_ShouldCallSaveSettingsOnTheService() { var settings = new EcommerceSettings(); _ecommerceSettingsController.Edit_POST(settings); A.CallTo(() => _ecommerceSettingsAdminService.SaveSettings(settings)).MustHaveHappened(); }
public RedirectToRouteResult Edit_POST(EcommerceSettings ecommerceSettings) { _ecommerceSettingsAdminService.SaveSettings(ecommerceSettings); TempData.SuccessMessages().Add("Ecommerce Settings Saved"); return(RedirectToAction("Edit")); }