mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-02-25 03:34:58 +01:00
* ProtoBuf
* .
* x
* ---
* x
* fx
* ...
* sc
* ...
* .
* groen
* x
* fix tests
* ok!?
* fix tests
* fix tests
* !
* x
* 6
* .
* x
* ivaluematcher
* transformer
* .
* sc
* .
* mapping
* x
* tra
* com
* ...
* .
* .
* .
* AddProtoDefinition
* .
* set
* grpahj
* .
* .
* IdOrText
* ...
* async
* async2
* .
* t
* nuget
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0-preview-04" />
* http version
* tests
* .WithHttpVersion("2")
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0" />
* HttpVersionParser
59 lines
2.2 KiB
C#
59 lines
2.2 KiB
C#
using System.Collections.Generic;
|
|
using System;
|
|
using WireMock.Matchers;
|
|
using WireMock.Matchers.Request;
|
|
|
|
namespace WireMock.RequestBuilders;
|
|
|
|
public partial class Request
|
|
{
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithGraphQLSchema(string schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return WithBodyAsGraphQL(schema, matchBehaviour);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithGraphQLSchema(string schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return WithBodyAsGraphQL(schema, customScalars, matchBehaviour);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithBodyAsGraphQL(string schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return Add(new RequestMessageGraphQLMatcher(matchBehaviour, schema));
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithBodyAsGraphQL(string schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return Add(new RequestMessageGraphQLMatcher(matchBehaviour, schema, customScalars));
|
|
}
|
|
|
|
#if GRAPHQL
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithGraphQLSchema(GraphQL.Types.ISchema schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return WithBodyAsGraphQL(schema, matchBehaviour);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithGraphQLSchema(GraphQL.Types.ISchema schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return WithBodyAsGraphQL(schema, customScalars, matchBehaviour);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithBodyAsGraphQL(GraphQL.Types.ISchema schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return Add(new RequestMessageGraphQLMatcher(matchBehaviour, schema));
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public IRequestBuilder WithBodyAsGraphQL(GraphQL.Types.ISchema schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
return Add(new RequestMessageGraphQLMatcher(matchBehaviour, schema, customScalars));
|
|
}
|
|
#endif
|
|
} |