public NotEmptyView ( Object model ) : Microsoft.AspNetCore.Mvc.ActionResult | ||
model | Object | |
Résultat | Microsoft.AspNetCore.Mvc.ActionResult |
protected RedirectToActionResult NotEmptyView(BaseController controller, Object model) { RedirectToActionResult result = new RedirectToActionResult(null, null, null); controller.When(sub => sub.NotEmptyView(model)).DoNotCallBase(); controller.NotEmptyView(model).Returns(result); return result; }
protected RedirectToRouteResult NotEmptyView(BaseController controller, Object model) { RedirectToRouteResult result = new RedirectToRouteResult(new RouteValueDictionary()); controller.When(sub => sub.NotEmptyView(model)).DoNotCallBase(); controller.NotEmptyView(model).Returns(result); return result; }