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

            PartialViewResult partialViewResult = _navigationController.LayoutTree(null);

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

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