Beispiel #1
0
        public void RuleServiceTest_GetByCategory_valid()
        {
            var expected = rep.GetByCategory("Category1").Count();
            var actual   = service.GetByCategory("Category1").Count();

            Assert.AreEqual(expected, actual);
        }
        public void RuleControllerTest_GetByCategory()
        {
            var expected = service.GetByCategory("Category1");
            var actual   = controller.GetByCategory("Category1");

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