File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
tests/GraphQL.Client.Tests Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 33
44namespace GraphQL . Client . Tests {
55
6- public class GraphQLClientTests : BaseGraphQLClientTest {
6+ public class GraphQLClientGetTests : BaseGraphQLClientTest {
77
88 [ Fact ]
99 public async void GetAsyncFact ( ) {
Original file line number Diff line number Diff line change 1+ using GraphQL . Common . Request ;
2+ using Xunit ;
3+
4+ namespace GraphQL . Client . Tests {
5+
6+ public class GraphQLClientPostTests : BaseGraphQLClientTest {
7+
8+ [ Fact ]
9+ public async void PostAsyncFact ( ) {
10+ var graphQLRequest = new GraphQLRequest { Query = @"
11+ {
12+ person(personID: ""1"") {
13+ name
14+ }
15+ }"
16+ } ;
17+ var response = await this . GraphQLClient . PostAsync ( graphQLRequest ) . ConfigureAwait ( false ) ;
18+
19+ Assert . Equal ( "Luke Skywalker" , response . Data . person . name . Value ) ;
20+ }
21+
22+ }
23+
24+ }
You can’t perform that action at this time.
0 commit comments