diff --git a/GraphQLSharp.Tests/GraphQLClientTests.cs b/GraphQLSharp.Tests/GraphQLClientTests.cs index 76b6988..8b9458c 100644 --- a/GraphQLSharp.Tests/GraphQLClientTests.cs +++ b/GraphQLSharp.Tests/GraphQLClientTests.cs @@ -205,12 +205,12 @@ public async Task QueryWithAliases() title } } - myOrders: orders(first: $first) + myVariants: productVariants(first: $first) { nodes { id - name + title } } } @@ -229,10 +229,10 @@ public async Task QueryWithAliases() //response.data is JsonElement var myProducts = response.data.Value.GetProperty("myProducts") .Deserialize(Serializer.GetOptions()); - var myOrders = response.data.Value.GetProperty("myOrders") - .Deserialize(Serializer.GetOptions()); + var myVariants = response.data.Value.GetProperty("myVariants") + .Deserialize(Serializer.GetOptions()); Assert.IsNotNull(myProducts.nodes.FirstOrDefault()?.title); - Assert.IsNotNull(myOrders.nodes.FirstOrDefault()?.name); + Assert.IsNotNull(myVariants.nodes.FirstOrDefault()?.title); } [TestMethod]