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));
        }
Пример #2
0
        public void SentenceTaskServiceTest_GetAllCategories_count()
        {
            var expected = rep.GetAllCategories().Count();
            var actual   = service.GetAllCategories().Count();

            Assert.AreEqual(expected, actual);
        }
Пример #3
0
 public IQueryable <string> GetAllCategories()
 {
     return(rep.GetAllCategories());
 }