Adds simple test to fetch cards

This commit is contained in:
Serraniel 2023-03-01 21:48:01 +01:00
parent 83b5cda902
commit 2213dd30b5
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -1,4 +1,5 @@
using JpnCardsPokemon.Tests.Classes;
using JpnCardsPokemonSdk.Utils.QueryFilter;
namespace JpnCardsPokemon.Tests.Tests.Tests;
@ -7,7 +8,7 @@ public class CardTests : ApiTestClass
[Test]
public async Task TestFetchCards()
{
//var cards = await Client.FetchDataAsync<Card>();
//Assert.IsNotEmpty(cards?.Data);
var cards = await Client.FetchCardsAsync(new CardQueryFilterBuilder { Name = "morpeko" });
Assert.IsNotEmpty(cards);
}
}