public void GetCategories() { bool expected = true; bool result = manager.All().Count >= 0; Assert.AreEqual(expected, result); }
public ActionResult All() { var categories = categoryManager.All() .Select(c => new CategoryViewModel() { Id = c.Id, Title = c.Title, Keywords = c.Keywords }).OrderBy(x => x.Title); return(Json(categories)); }