mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-05-11 01:19:42 +02: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
45 lines
2.5 KiB
C#
45 lines
2.5 KiB
C#
using WireMock.Matchers;
|
|
|
|
namespace WireMock.RequestBuilders;
|
|
|
|
/// <summary>
|
|
/// The ProtoBufRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IProtoBufRequestBuilder : IGraphQLRequestBuilder
|
|
{
|
|
/// <summary>
|
|
/// WithGrpcProto
|
|
/// </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>
|
|
/// WithGrpcProto
|
|
/// </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>
|
|
/// WithGrpcProto
|
|
/// </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>
|
|
/// WithGrpcProto
|
|
/// </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);
|
|
} |