More fixes for #106

This commit is contained in:
Stef Heyenrath
2018-03-11 12:18:27 +01:00
parent ff012be173
commit 83d71bb24e
5 changed files with 67 additions and 7 deletions

View File

@@ -291,6 +291,15 @@ namespace WireMock.RequestBuilders
return this;
}
/// <inheritdoc cref="IParamsRequestBuilder.WithParam(string)"/>
public IRequestBuilder WithParam(string key)
{
Check.NotNull(key, nameof(key));
_requestMatchers.Add(new RequestMessageParamMatcher(key));
return this;
}
/// <inheritdoc cref="IParamsRequestBuilder.WithParam(string, string[])"/>
public IRequestBuilder WithParam(string key, params string[] values)
{