Example #1
0
        public void UserDictionaryServiceTest_Add_valid()
        {
            var model = new UserWord
            {
                Id     = 1,
                UserId = 1,
                WordId = 1
            };
            var expected = rep.Add(1, model);
            var actual   = service.Add(1, model);

            Assert.AreEqual(expected, actual);
        }
Example #2
0
 public bool AddWordToDictionary(UserWord word)
 {
     return(serviceDictionary.Add(GetCurrentUserId(), word));
 }