public void SentenceTaskServiceTest_GetByCategory_valid() { var expected = rep.GetByCategory("Category1").Count(); var actual = service.GetByCategory("Category1").Count(); Assert.AreEqual(expected, actual); }
public void SentenceTaskControllerTest_GetByCategory() { var expected = service.GetByCategory("Category1"); var actual = controller.GetByCategory("Category1"); Assert.AreEqual(expected.Count(), actual.Count()); }
public IQueryable <SentenceTask> GetByCategory(string category) { return(service.GetByCategory(category)); }