Skip to content

Commit 9dde477

Browse files
committed
added a mutation test
1 parent 79896e1 commit 9dde477

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

test/Linq2GraphQL.Tests/MutationTests.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,23 @@ public async Task SetName_WithName_PrependNameNewName(string name)
2424

2525
Assert.Equal($"New Name is: {name}", result);
2626
}
27+
28+
[Fact]
29+
public async Task Mutation_Multiple()
30+
{
31+
var id = Guid.NewGuid();
32+
var customerId = await sampleClient
33+
.Mutation
34+
.AddCustomer(new CustomerInput
35+
{
36+
CustomerId = id,
37+
CustomerName = "New Customer",
38+
Status = CustomerStatus.Active
39+
})
40+
.Select(e=> e.CustomerId)
41+
.ExecuteAsync();
42+
43+
Assert.Equal(id, customerId);
44+
}
45+
2746
}

0 commit comments

Comments
 (0)