mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:03:46 +01:00
* Create WireMock.Net.MimePart project * . * REFACTOR * ILRepack * -- * ... * x * x * . * fix * public class MimePartMatcher * shared * min * . * <!--<DelaySign>true</DelaySign>--> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
83 lines
4.5 KiB
C#
83 lines
4.5 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using WireMock.Matchers;
|
|
|
|
namespace WireMock.RequestBuilders;
|
|
|
|
/// <summary>
|
|
/// The GraphQLRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IGraphQLRequestBuilder : IMultiPartRequestBuilder
|
|
{
|
|
/// <summary>
|
|
/// WithGraphQLSchema: The GraphQL schema as a string.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithGraphQLSchema(string schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithGraphQLSchema: The GraphQL schema as a string.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="customScalars">A dictionary defining the custom scalars used in this schema. (optional)</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithGraphQLSchema(string schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsGraphQL: The GraphQL schema as a string.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsGraphQL(string schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsGraphQL: The GraphQL schema as a string.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="customScalars">A dictionary defining the custom scalars used in this schema. (optional)</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsGraphQL(string schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
#if GRAPHQL
|
|
/// <summary>
|
|
/// WithGraphQLSchema: The GraphQL schema as a ISchema.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithGraphQLSchema(GraphQL.Types.ISchema schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithGraphQLSchema: The GraphQL schema as a ISchema.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="customScalars">A dictionary defining the custom scalars used in this schema. (optional)</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithGraphQLSchema(GraphQL.Types.ISchema schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsGraphQL: The GraphQL schema as a ISchema.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsGraphQL(GraphQL.Types.ISchema schema, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsGraphQL: The GraphQL schema as a ISchema.
|
|
/// </summary>
|
|
/// <param name="schema">The GraphQL schema.</param>
|
|
/// <param name="customScalars">A dictionary defining the custom scalars used in this schema. (optional)</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (Default is <c>MatchBehaviour.AcceptOnMatch</c>).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsGraphQL(GraphQL.Types.ISchema schema, IDictionary<string, Type>? customScalars, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
#endif
|
|
} |