Exemplo n.º 1
0
        public void UserDictionaryServiceTest_GetAllCategories_count()
        {
            var expected = rep.GetAllCategories(1).Count();
            var actual   = service.GetAllCategories(1).Count();

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
 public IQueryable <string> GetAllCategories(int id)
 {
     if (!id.Validate())
     {
         throw new Exception("Invalid model");
     }
     return(rep.GetAllCategories(id));
 }