public void Should_GetLastDocument_When_WordsInDb() { FillDatabase(); string word = "GamesIsOn"; CardDocument card = CardDocument.CreateBasedOnWordAsync(mongoHandler, word).Result; mongoHandler.InsertCard(card); card = mongoHandler.FindLastDocument(); Assert.IsNotNull(card); CardDocument card2 = mongoHandler.FindLastDocumentAsync().Result; Assert.IsNotNull(card2); Assert.AreEqual(card.Word, word); Assert.AreEqual(card2.Word, word); }