public async Task Exists_False() { var store = new CardsStore(Context); var card = Fixture.Create <Card>(); var actual = await store.ExistsAsync(card.CardId); actual.Should().BeFalse(); }
public async Task Exists_True() { var store = new CardsStore(Context); var card = Fixture.Create <Card>(); Context.Cards.Add(card); await Context.SaveChangesAsync(); var actual = await store.ExistsAsync(card.CardId); actual.Should().BeTrue(); }