Skip to content

Commit bdfb578

Browse files
author
Raul Hidalgo Caballero
committed
Tests Splited
1 parent 4e53c02 commit bdfb578

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

tests/GraphQL.Client.Tests/GraphQLClientTests.get.cs renamed to tests/GraphQL.Client.Tests/GraphQLClientGetTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace GraphQL.Client.Tests {
55

6-
public class GraphQLClientTests : BaseGraphQLClientTest {
6+
public class GraphQLClientGetTests : BaseGraphQLClientTest {
77

88
[Fact]
99
public async void GetAsyncFact() {
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

0 commit comments

Comments
 (0)