mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-24 10:01:00 +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>
67 lines
3.9 KiB
C#
67 lines
3.9 KiB
C#
// Copyright © WireMock.Net
|
|
|
|
using System.Collections.Generic;
|
|
using WireMock.Matchers;
|
|
|
|
namespace WireMock.RequestBuilders;
|
|
|
|
/// <summary>
|
|
/// The ProtoBufRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IProtoBufRequestBuilder : IGraphQLRequestBuilder
|
|
{
|
|
/// <summary>
|
|
/// WithBodyAsProtoBuf
|
|
/// </summary>
|
|
/// <param name="protoDefinition">The proto definition as text.</param>
|
|
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsProtoBuf(string protoDefinition, string messageType, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsProtoBuf
|
|
/// </summary>
|
|
/// <param name="protoDefinition">The proto definition as text.</param>
|
|
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
|
|
/// <param name="matcher">The matcher to use to match the ProtoBuf as (json) object.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsProtoBuf(string protoDefinition, string messageType, IObjectMatcher matcher, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsProtoBuf
|
|
/// </summary>
|
|
/// <param name="protoDefinitions">The proto definitions as text.</param>
|
|
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsProtoBuf(IReadOnlyList<string> protoDefinitions, string messageType, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsProtoBuf
|
|
/// </summary>
|
|
/// <param name="protoDefinitions">The proto definitions as text.</param>
|
|
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
|
|
/// <param name="matcher">The matcher to use to match the ProtoBuf as (json) object.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsProtoBuf(IReadOnlyList<string> protoDefinitions, string messageType, IObjectMatcher matcher, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsProtoBuf
|
|
/// </summary>
|
|
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsProtoBuf(string messageType, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithBodyAsProtoBuf
|
|
/// </summary>
|
|
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
|
|
/// <param name="matcher">The matcher to use to match the ProtoBuf as (json) object.</param>
|
|
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithBodyAsProtoBuf(string messageType, IObjectMatcher matcher, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
} |