Beispiel #1
0
        public void RuleServiceTest_GetAllCategories_count()
        {
            var expected = rep.GetAllCategories().Count();
            var actual   = service.GetAllCategories().Count();

            Assert.AreEqual(expected, actual);
        }
        public void RuleControllerTest_GetAllCategories()
        {
            var expected = service.GetAllCategories();
            var actual   = controller.GetAllCategories();

            Assert.AreEqual(expected.Count(), actual.Count());
        }
Beispiel #3
0
 public IQueryable <string> GetAllCategories()
 {
     return(service.GetAllCategories());
 }