Esempio n. 1
0
        public void TestUpdateWordsWithEffort()
        {
            using (var connection = DbConnectionFactory.CreateTransient())
            {
                context = new DictonaryContext(connection);
                IDictonaryRepository repository = new DictonaryRepository(context);
                int roomDictonary = 0;
                string searchWord = "кот";
                string[] exrectedTranslate = new string[] { "cat" };

                bool actualMessage = repository.UpdateWordsToDb(roomDictonary, searchWord, exrectedTranslate);

                Assert.IsTrue(actualMessage);
            }
        }