1
1
// Copyright © WireMock.Net
2
2
3
+ using System . Collections . Generic ;
3
4
using WireMock . Matchers ;
4
5
5
6
namespace WireMock . RequestBuilders ;
@@ -10,7 +11,7 @@ namespace WireMock.RequestBuilders;
10
11
public interface IProtoBufRequestBuilder : IGraphQLRequestBuilder
11
12
{
12
13
/// <summary>
13
- /// WithGrpcProto
14
+ /// WithBodyAsProtoBuf
14
15
/// </summary>
15
16
/// <param name="protoDefinition">The proto definition as text.</param>
16
17
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
@@ -19,7 +20,7 @@ public interface IProtoBufRequestBuilder : IGraphQLRequestBuilder
19
20
IRequestBuilder WithBodyAsProtoBuf ( string protoDefinition , string messageType , MatchBehaviour matchBehaviour = MatchBehaviour . AcceptOnMatch ) ;
20
21
21
22
/// <summary>
22
- /// WithGrpcProto
23
+ /// WithBodyAsProtoBuf
23
24
/// </summary>
24
25
/// <param name="protoDefinition">The proto definition as text.</param>
25
26
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
@@ -29,15 +30,34 @@ public interface IProtoBufRequestBuilder : IGraphQLRequestBuilder
29
30
IRequestBuilder WithBodyAsProtoBuf ( string protoDefinition , string messageType , IObjectMatcher matcher , MatchBehaviour matchBehaviour = MatchBehaviour . AcceptOnMatch ) ;
30
31
31
32
/// <summary>
32
- /// WithGrpcProto
33
+ /// WithBodyAsProtoBuf
34
+ /// </summary>
35
+ /// <param name="protoDefinitions">The proto definitions as text.</param>
36
+ /// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
37
+ /// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
38
+ /// <returns>The <see cref="IRequestBuilder"/>.</returns>
39
+ IRequestBuilder WithBodyAsProtoBuf ( IReadOnlyList < string > protoDefinitions , string messageType , MatchBehaviour matchBehaviour = MatchBehaviour . AcceptOnMatch ) ;
40
+
41
+ /// <summary>
42
+ /// WithBodyAsProtoBuf
43
+ /// </summary>
44
+ /// <param name="protoDefinitions">The proto definitions as text.</param>
45
+ /// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
46
+ /// <param name="matcher">The matcher to use to match the ProtoBuf as (json) object.</param>
47
+ /// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
48
+ /// <returns>The <see cref="IRequestBuilder"/>.</returns>
49
+ IRequestBuilder WithBodyAsProtoBuf ( IReadOnlyList < string > protoDefinitions , string messageType , IObjectMatcher matcher , MatchBehaviour matchBehaviour = MatchBehaviour . AcceptOnMatch ) ;
50
+
51
+ /// <summary>
52
+ /// WithBodyAsProtoBuf
33
53
/// </summary>
34
54
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
35
55
/// <param name="matchBehaviour">The match behaviour. (default = "AcceptOnMatch")</param>
36
56
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
37
57
IRequestBuilder WithBodyAsProtoBuf ( string messageType , MatchBehaviour matchBehaviour = MatchBehaviour . AcceptOnMatch ) ;
38
58
39
59
/// <summary>
40
- /// WithGrpcProto
60
+ /// WithBodyAsProtoBuf
41
61
/// </summary>
42
62
/// <param name="messageType">The full type of the protobuf (request/response) message object. Format is "{package-name}.{type-name}".</param>
43
63
/// <param name="matcher">The matcher to use to match the ProtoBuf as (json) object.</param>
0 commit comments