示例#1
0
        public void ByController()
        {
            var controller = new TestableController();

            var maskedResult = controller.Mask(Category_Controller.GetCategories());

            foreach (var category in maskedResult)
            {
                Assert.Null(category.Children);
            }

            controller.JsonByMask(Category_Controller.GetCategories(), null, null);
        }