예제 #1
0
        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();
        }
예제 #2
0
        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();
        }