Class ContractStepFunction
A step function that verifies an observed response against an expected behavior. It is enabled if the verify function deems the observed response to be valid given the request and the state on which the step function is evaluated. If valid, it produces the updated state and any optional step functions that run concurrently with the rest of the system.
public class ContractStepFunction : BaseStepFunction, IStepFunction
- Inheritance
-
ContractStepFunction
- Implements
- Inherited Members
Constructors
ContractStepFunction(object, object, VerifyFunc)
public ContractStepFunction(object request, object observedResponse, VerifyFunc verify)
Parameters
requestobjectobservedResponseobjectverifyVerifyFunc
Properties
ObservedResponse
public object ObservedResponse { get; }
Property Value
Request
public object Request { get; }
Property Value
Verify
public VerifyFunc Verify { get; }
Property Value
Methods
ApplyInternal(IState)
protected override IList<StepResult> ApplyInternal(IState state)
Parameters
stateIState