mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-17 23:03:46 +01:00
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.Util;
|
|
|
|
namespace WireMock.RequestBuilders
|
|
{
|
|
/// <summary>
|
|
/// The ParamsRequestBuilder interface.
|
|
/// </summary>
|
|
public interface IParamsRequestBuilder
|
|
{
|
|
/// <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);
|
|
}
|
|
} |