public void Should_Succeed_When_AddWordsToDbAsyncAndSync() { CardDocument card = CardDocument.CreateBasedOnWordAsync(mongoHandler, "Test").Result; mongoHandler.InsertCard(card); Assert.IsTrue(mongoHandler.GetDocumentsCount() == 1); card = CardDocument.CreateBasedOnWordAsync(mongoHandler, "Wall").Result; mongoHandler.InsertCardAsync(card).Wait(); Assert.IsTrue(mongoHandler.GetDocumentsCount() == 2); mongoHandler.DeleteDatabase(mongoHandler.DbInfo.DatabaseName); }