public void UserDictionaryServiceTest_GetAllCategories_count() { var expected = rep.GetAllCategories(1).Count(); var actual = service.GetAllCategories(1).Count(); Assert.AreEqual(expected, actual); }
public IQueryable <string> GetAllCategories(int id) { if (!id.Validate()) { throw new Exception("Invalid model"); } return(rep.GetAllCategories(id)); }