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()); }
public IQueryable <RuleModel> GetByCategory(string category) { return(service.GetByCategory(category)); }