Class FlowExpectationEvaluator
- Namespace
- Kuestenlogik.Bowire.Flows.Expectations
- Assembly
- Kuestenlogik.Bowire.Flows.dll
Pure-function evaluator: given a FlowExpectation and a FlowRequestEnvelope, return a FlowExpectationResult. No I/O, no global state — so the v2.2 CLI runner (T2) and the in-process flow runner share the same predicate semantics.
public static class FlowExpectationEvaluator
- Inheritance
-
FlowExpectationEvaluator
- Inherited Members
Methods
Evaluate(FlowExpectation, FlowRequestEnvelope)
Evaluate one expectation. Always returns a result — even when the envelope is empty or the path doesn't resolve — because the runner's soft-fail semantics need a row per expectation regardless of success.
public static FlowExpectationResult Evaluate(FlowExpectation expectation, FlowRequestEnvelope envelope)
Parameters
expectationFlowExpectationenvelopeFlowRequestEnvelope
Returns
EvaluateStep(string, IEnumerable<FlowExpectation>, FlowRequestEnvelope)
Evaluate every expectation on one step. The result preserves declaration order so the UI can render rows in the same sequence the operator wrote them.
public static FlowStepExpectationResult EvaluateStep(string stepId, IEnumerable<FlowExpectation> expectations, FlowRequestEnvelope envelope)
Parameters
stepIdstringexpectationsIEnumerable<FlowExpectation>envelopeFlowRequestEnvelope