public void NavigationController_MediaTree_ShouldReturnSiteTreeAsModel()
        {
            A.CallTo(() => _treeNavService.GetMediaCategoryNodes(null)).Returns(new AdminTree());

            PartialViewResult partialViewResult = _navigationController.MediaTree(null);

            partialViewResult.Model.Should().BeOfType <AdminTree>();
        }
示例#2
0
        public PartialViewResult MediaTree(int?id)
        {
            AdminTree admintree = _treeNavService.GetMediaCategoryNodes(id);

            return(PartialView("TreeList", admintree));
        }