Class MockConditionalRule
- Namespace
- Kuestenlogik.Bowire.Mocking
- Assembly
- Kuestenlogik.Bowire.dll
Per-method conditional-response rule (#558 model; evaluated by #561). When a request to Service / Method satisfies When, the mock serves Response in place of the default. Model-only in the foundation slice — the serve-time evaluator ships with the conditional-rules editor.
public sealed class MockConditionalRule
- Inheritance
-
MockConditionalRule
- Inherited Members
Constructors
MockConditionalRule()
public MockConditionalRule()
Properties
Method
Method to scope to. Null/empty/* = any.
[JsonPropertyName("method")]
public string? Method { get; set; }
Property Value
Response
Response body (as arbitrary JSON) to serve when the rule fires.
[JsonPropertyName("response")]
public JsonElement? Response { get; set; }
Property Value
Service
Service to scope to. Null/empty/* = any.
[JsonPropertyName("service")]
public string? Service { get; set; }
Property Value
When
Request predicate that arms the rule.
[JsonPropertyName("when")]
public MockRulePredicate? When { get; set; }