public async Task Add_GetAllForUserReturnsIt() { var user = new User { Id = ObjectId.GenerateNewId() }; await _repo.Add(CreateWord(user.Id, "table", "стол" )); var allWords = await _repo.GetAllUserWordsAsync(user); Assert.AreEqual(1, allWords.Count); Assert.AreEqual("table", allWords[0].Word); Assert.AreEqual("стол", allWords[0].Translations[0].Word); }
public Task AddUserWord(UserWord entity) => _userWordsRepository.Add(entity);