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