mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-17 08:56:51 +01:00
* Add GrapQLMatcher * tests * x * . * . * RequestMessageGraphQLMatcher * . * more tests * tests * ... * ms * . * more tests * GraphQL.NET !!! * . * executionResult * nw * sonarcloud
23 lines
695 B
C#
23 lines
695 B
C#
using WireMock.Matchers;
|
|
using WireMock.Matchers.Request;
|
|
|
|
namespace WireMock.RequestBuilders;
|
|
|
|
public partial class Request
|
|
{
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithGraphQLSchema(string schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
_requestMatchers.Add(new RequestMessageGraphQLMatcher(matchBehaviour, schema));
|
|
return this;
|
|
}
|
|
|
|
#if GRAPHQL
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithGraphQLSchema(GraphQL.Types.ISchema schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
_requestMatchers.Add(new RequestMessageGraphQLMatcher(matchBehaviour, schema));
|
|
return this;
|
|
}
|
|
#endif
|
|
} |