Table of Contents

Class ExpectedOutcomes

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

This class contains collection of ExpectedOutcome that represent the different outcomes of invoking an operation.

public class ExpectedOutcomes
Inheritance
ExpectedOutcomes
Inherited Members

Constructors

ExpectedOutcomes(params ExpectedOutcome[])

public ExpectedOutcomes(params ExpectedOutcome[] possibleOutcomes)

Parameters

possibleOutcomes ExpectedOutcome[]

Properties

PossibleOutcomes

List of possible outcomes of invoking an operation.

public IList<ExpectedOutcome> PossibleOutcomes { get; }

Property Value

IList<ExpectedOutcome>

Methods

Matches(object, IState)

This method matches the observed response against the list of possible outcomes, returning the next state and step function of all the results that match.

public (bool, StateProfile) Matches(object observedResponse, IState currentState)

Parameters

observedResponse object

The response to validate.

currentState IState

The current state.

Returns

(bool, StateProfile)

A tuple of (isValid, stateProfile).