Ejemplo n.º 1
0
        public ActionResult _SideBar()
        {
            SidebarModel model = new SidebarModel();

            using (DefinitionService service = new DefinitionService())
            {
                model.CategoryList = service.GetCategories();
            }

            using (BlogService service = new BlogService())
            {
                model.BlogList = service.GetBlogs();
            }

            return(PartialView(model));
        }
Ejemplo n.º 2
0
        public void GetCategories()
        {
            var result = service.GetCategories();

            Assert.IsNotNull(result);
        }