Create GraphQL project (#1334)

* Create new project for GraphQL

* ...

* .

* ok?

* Update src/WireMock.Net.Shared/Extensions/AnyOfExtensions.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* --

* ...

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Stef Heyenrath
2025-08-10 19:00:22 +02:00
committed by GitHub
parent 0d510cdde8
commit 0597a73e0e
38 changed files with 266 additions and 230 deletions

View File

@@ -3,7 +3,7 @@
#if GRAPHQL
using System;
using FluentAssertions;
using WireMock.Matchers.Models;
using WireMock.GraphQL.Models;
using Xunit;
namespace WireMock.Net.Tests.Matchers.Models;

View File

@@ -549,7 +549,7 @@ message HelloReply {
lastName:String
fullName:String
}";
var request = Request.Create().WithBodyAsGraphQLSchema(schema);
var request = Request.Create().WithGraphQLSchema(schema);
var response = Response.Create();
var mapping = new Mapping(_guid, _updatedAt, string.Empty, string.Empty, null, _settings, request, response, 42, null, null, null, null, null, false, null, null);

View File

@@ -1076,7 +1076,7 @@ message HelloReply {
};
// Act
var matcher = (GraphQLMatcher)_sut.Map(model)!;
var matcher = (IGraphQLMatcher)_sut.Map(model)!;
// Assert
matcher.GetPatterns().Should().HaveElementAt(0, testSchema);