Beispiel #1
0
        public void UserDictionaryServiceTest_Get_count()
        {
            var expected = rep.GetUserDictionary(1).Words.Count();
            var actual   = service.Get(1).Words.Count();

            Assert.AreEqual(expected, actual);
        }
 public UserDictionary Get(int id)
 {
     if (!id.Validate())
     {
         throw new Exception("Invalid model");
     }
     return(rep.GetUserDictionary(id));
 }