public void SentenceTaskRepositoryTest_SentenceTasks_getAllCategories()
        {
            var countOfCategories        = context.Object.SentenceTasks.GroupBy(x => x.Category).Count();
            var rep_countOfAllCategories = rep.GetAllCategories().Count();

            Assert.AreEqual(countOfCategories, rep_countOfAllCategories, string.Format(countOfCategories + " != " + rep_countOfAllCategories));
        }
        public void SentenceTaskServiceTest_GetAllCategories_count()
        {
            var expected = rep.GetAllCategories().Count();
            var actual   = service.GetAllCategories().Count();

            Assert.AreEqual(expected, actual);
        }
 public IQueryable <string> GetAllCategories()
 {
     return(rep.GetAllCategories());
 }