So far I have this :
using (var actContext = new ItsAllAboutTheGameDbContext(contextOptions))
{
var cardService = new CardService(actContext);
creditCardResult = await cardService.AddCard("3242423532532434", "332", DateTime.Parse("02.03.2020"), user);
actContext.CreditCards.Add(creditCardResult);
await actContext.SaveChangesAsync();
}
//Assert
After I have added the card to CreditCards table in the context, how can I Assert if it was added successfully? And I need to check if it is added into the inmemorydatabase (actContext)?