mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-18 16:17:10 +01:00
20 lines
610 B
C#
20 lines
610 B
C#
using WireMock.Matchers;
|
|
|
|
namespace WireMock.Settings;
|
|
|
|
public class ProxySaveMappingSetting<T>
|
|
{
|
|
public MatchBehaviour MatchBehaviour { get; } = MatchBehaviour.AcceptOnMatch;
|
|
|
|
public T Value { get; private set; }
|
|
|
|
public ProxySaveMappingSetting(T value, MatchBehaviour matchBehaviour = MatchBehaviour.AcceptOnMatch)
|
|
{
|
|
Value = value;
|
|
MatchBehaviour = matchBehaviour;
|
|
}
|
|
|
|
public static implicit operator ProxySaveMappingSetting<T>(T value) => new ProxySaveMappingSetting<T>(value);
|
|
|
|
public static implicit operator T(ProxySaveMappingSetting<T> @this) => @this.Value;
|
|
} |