Table of Contents

Class ContractStepFunction

Namespace
Microsoft.Accordant
Assembly
Accordant.dll

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

request object
observedResponse object
verify VerifyFunc

Properties

ObservedResponse

public object ObservedResponse { get; }

Property Value

object

Request

public object Request { get; }

Property Value

object

Verify

public VerifyFunc Verify { get; }

Property Value

VerifyFunc

Methods

ApplyInternal(IState)

protected override IList<StepResult> ApplyInternal(IState state)

Parameters

state IState

Returns

IList<StepResult>