mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-19 15:53:54 +01:00
* refactor * rename api * -preview-01 * logger * move * RandomDataGenerator.Net * . * ISettings * renames... * refactor CommandlineParser logic * remove standalone * Remove Interfaces * Update tests * WireMock.Net.StandAlone * . * fix * . * _settings * Admin * WireMock.Net.Abstractions * fix build * rename WireMockServer * fix compile errors
110 lines
5.3 KiB
C#
110 lines
5.3 KiB
C#
using JetBrains.Annotations;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using WireMock.Matchers;
|
|
using WireMock.Types;
|
|
|
|
namespace WireMock.RequestBuilders
|
|
{
|
|
/// <summary>
|
|
/// The ParamsRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IParamsRequestBuilder : IBodyRequestBuilder
|
|
{
|
|
/// <summary>
|
|
/// WithParam: matching on key only.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="matchBehaviour">The match behaviour (optional).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key only.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="ignoreCase">Defines if the key should be matched using case-ignore.</param>
|
|
/// <param name="matchBehaviour">The match behaviour (optional).</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, bool ignoreCase, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key and values.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="values">The values.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, [CanBeNull] params string[] values);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key and values.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="ignoreCase">Defines if the key should be matched using case-ignore.</param>
|
|
/// <param name="values">The values.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, bool ignoreCase, [CanBeNull] params string[] values);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key and matchers.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="matchers">The matchers.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, [CanBeNull] params IStringMatcher[] matchers);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key and matchers.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="ignoreCase">Defines if the key should be matched using case-ignore.</param>
|
|
/// <param name="matchers">The matchers.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, bool ignoreCase, [CanBeNull] params IStringMatcher[] matchers);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key, values and matchBehaviour.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="values">The values.</param>
|
|
/// <param name="matchBehaviour">The match behaviour.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, MatchBehaviour matchBehaviour, [CanBeNull] params string[] values);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key, values and matchBehaviour.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="ignoreCase">Defines if the key should be matched using case-ignore.</param>
|
|
/// <param name="values">The values.</param>
|
|
/// <param name="matchBehaviour">The match behaviour.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, MatchBehaviour matchBehaviour, bool ignoreCase = false, [CanBeNull] params string[] values);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key, matchers and matchBehaviour.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="matchers">The matchers.</param>
|
|
/// <param name="matchBehaviour">The match behaviour.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, MatchBehaviour matchBehaviour, [CanBeNull] params IStringMatcher[] matchers);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on key, matchers and matchBehaviour.
|
|
/// </summary>
|
|
/// <param name="key">The key.</param>
|
|
/// <param name="ignoreCase">Defines if the key should be matched using case-ignore.</param>
|
|
/// <param name="matchers">The matchers.</param>
|
|
/// <param name="matchBehaviour">The match behaviour.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] string key, MatchBehaviour matchBehaviour, bool ignoreCase = false, [CanBeNull] params IStringMatcher[] matchers);
|
|
|
|
/// <summary>
|
|
/// WithParam: matching on functions.
|
|
/// </summary>
|
|
/// <param name="funcs">The funcs.</param>
|
|
/// <returns>The <see cref="IRequestBuilder"/>.</returns>
|
|
IRequestBuilder WithParam([NotNull] params Func<IDictionary<string, WireMockList<string>>, bool>[] funcs);
|
|
}
|
|
} |