Class StepExecutedInfo
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
stateBeforeStateProfileoperationsIReadOnlyList<(IOperation Operation, object Request, object Response)>contextTestingContext
Properties
Context
The testing context. Use Context.Get<T>() to access registered services.
public TestingContext Context { get; }
Property Value
IsSingleOperation
Whether this was a single operation (convenience for sequential tests).
public bool IsSingleOperation { get; }
Property Value
Operation
The operation (convenience for single-operation case, null if multiple).
public IOperation Operation { get; }
Property Value
Operations
The operations that were executed (1 for sequential, multiple for concurrent).
public IReadOnlyList<(IOperation Operation, object Request, object Response)> Operations { get; }
Property Value
Request
The request (convenience for single-operation case, null if multiple).
public object Request { get; }
Property Value
Response
The response (convenience for single-operation case, null if multiple).
public object Response { get; }
Property Value
StateBefore
The state profile before the operation(s) executed.
public StateProfile StateBefore { get; }