Exemplo n.º 1
0
        public void ReturnsAListOfAllSubcategories()
        {
            var result = subcategoryController.Index();

            Assert.Equal(JsonConvert.SerializeObject(result),
                         JsonConvert.SerializeObject(subcategoriesRepository.GetAllSubcategories()));
        }
 public ICollection <Subcategory> Index()
 {
     return(subcategoriesRepository.GetAllSubcategories());
 }