public void LayoutAreaController_SortWidgetsForPage_IsResultOfCallToGetSortModel() { var newLayoutArea = GetNewLayoutArea(); var pageWidgetSortModel = new PageWidgetSortModel(); A.CallTo(() => _layoutAreaAdminService.GetSortModel(newLayoutArea, 2)).Returns(pageWidgetSortModel); _layoutAreaController.SortWidgetsForPage(newLayoutArea, 2) .Model.Should() .Be(pageWidgetSortModel); }
public ViewResult SortWidgetsForPage(LayoutArea area, int pageId, string returnUrl = null) { ViewData["returnUrl"] = returnUrl; return(View(_layoutAreaAdminService.GetSortModel(area, pageId))); }