Class MockRulePredicate
- Namespace
- Kuestenlogik.Bowire.Mocking
- Assembly
- Kuestenlogik.Bowire.dll
A request-body predicate for a MockConditionalRule (#558
model). Mirrors the BowireBodyMatcher text-op subset so the
conditional-rules editor and the mock matcher agree on one predicate
shape.
public sealed class MockRulePredicate
- Inheritance
-
MockRulePredicate
- Inherited Members
Constructors
MockRulePredicate()
public MockRulePredicate()
Properties
Contains
Require a value containing this substring.
[JsonPropertyName("contains")]
public string? Contains { get; set; }
Property Value
EqualTo
Require a value exactly equal to this.
[JsonPropertyName("equals")]
public string? EqualTo { get; set; }
Property Value
JsonPath
Path into the request body to test. Null = test the raw body string.
[JsonPropertyName("jsonPath")]
public string? JsonPath { get; set; }
Property Value
Matches
Require a value matching this regex.
[JsonPropertyName("matches")]
public string? Matches { get; set; }