public async Task TestPostWord() { using (var context = new bookAPIContext(options)) { Word newword = new Word { Word1 = "Spell" }; WordsController wordsController = new WordsController(context); ActionResult <Word> result = await wordsController.PostWord(newword); Assert.IsNotNull(result); Assert.AreEqual(context.Word.Count(), 4); } }