Table of Contents

Class ChooseExpressionLambda

Namespace
Microsoft.Accordant
Assembly
Accordant.Choose.dll

A choose expression lambda is a lambda that contains zero or more choose expressions. The Run method of this class can be used to run such a lambda. The lambda is invoked multiple times such that all combinations of all choose expressions are exercised.

public class ChooseExpressionLambda
Inheritance
ChooseExpressionLambda
Inherited Members

Methods

Run(Action)

Runs a choose expression lambda, enough times such that all combinations of choices of all its multi-valued expressions are chosen.

public static void Run(Action lambda)

Parameters

lambda Action

Run<TResponse>(Func<TResponse>)

Runs a choose expression lambda that returns a response of type TResponse. Since the lambda can be invoked multiple times, this method returns an enumeration of the responses that result from calling it each time.

public static IEnumerable<TResponse> Run<TResponse>(Func<TResponse> lambda)

Parameters

lambda Func<TResponse>

Returns

IEnumerable<TResponse>

Type Parameters

TResponse