Add WithBodyAsType to RequestMatcher (#1388)

* Add WithBody<T>

* .

* t

* t2
This commit is contained in:
Stef Heyenrath
2025-12-08 19:15:14 +01:00
committed by GitHub
parent c25d8f33d2
commit f8e2c7ee90
5 changed files with 143 additions and 12 deletions

View File

@@ -80,6 +80,14 @@ public interface IBodyRequestBuilder : IMultiPartRequestBuilder
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
IRequestBuilder WithBody(Func<object?, bool> func);
/// <summary>
/// WithBody: func (type)
/// </summary>
/// <typeparam name="T">The type.</typeparam>
/// <param name="func">The function.</param>
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
IRequestBuilder WithBodyAsType<T>(Func<T?, bool> func);
/// <summary>
/// WithBody: func (BodyData object)
/// </summary>