Table of Contents

Class StepExecutedInfo

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

Information provided to OnStepExecuted hooks. Called after each operation or batch of concurrent operations executes.

public class StepExecutedInfo
Inheritance
StepExecutedInfo
Inherited Members

Constructors

StepExecutedInfo(StateProfile, IReadOnlyList<(IOperation Operation, object Request, object Response)>, TestingContext)

public StepExecutedInfo(StateProfile stateBefore, IReadOnlyList<(IOperation Operation, object Request, object Response)> operations, TestingContext context)

Parameters

stateBefore StateProfile
operations IReadOnlyList<(IOperation Operation, object Request, object Response)>
context TestingContext

Properties

Context

The testing context. Use Context.Get<T>() to access registered services.

public TestingContext Context { get; }

Property Value

TestingContext

IsSingleOperation

Whether this was a single operation (convenience for sequential tests).

public bool IsSingleOperation { get; }

Property Value

bool

Operation

The operation (convenience for single-operation case, null if multiple).

public IOperation Operation { get; }

Property Value

IOperation

Operations

The operations that were executed (1 for sequential, multiple for concurrent).

public IReadOnlyList<(IOperation Operation, object Request, object Response)> Operations { get; }

Property Value

IReadOnlyList<(IOperation Operation, object Request, object Response)>

Request

The request (convenience for single-operation case, null if multiple).

public object Request { get; }

Property Value

object

Response

The response (convenience for single-operation case, null if multiple).

public object Response { get; }

Property Value

object

StateBefore

The state profile before the operation(s) executed.

public StateProfile StateBefore { get; }

Property Value

StateProfile