public void NavigationController_LayoutTree_ShouldReturnLayoutTreeAsModel() { A.CallTo(() => _treeNavService.GetLayoutNodes(null)).Returns(new AdminTree()); PartialViewResult partialViewResult = _navigationController.LayoutTree(null); partialViewResult.Model.Should().BeOfType <AdminTree>(); }
public PartialViewResult LayoutTree(int?id) { AdminTree admintree = _treeNavService.GetLayoutNodes(id); return(PartialView("TreeList", admintree)); }