Class TestEntityOperation
- Namespace
- XBullet.EasyTesting.AzureFunctions
- Assembly
- XBullet.EasyTesting.AzureFunctions.dll
Supplies an operation to the SDK's real ITaskEntity dispatcher.
public sealed class TestEntityOperation : TaskEntityOperation
- Inheritance
-
TestEntityOperation
- Inherited Members
- Extension Methods
Remarks
Invoke ITaskEntity.RunAsync explicitly. Input is serialized at construction, and null means no input. This helper does not provide worker binding, batching, replay, retries, or transactional rollback.
Constructors
TestEntityOperation(TestEntityContext, string, TestEntityState, object?, DataConverter?)
Creates an entity operation with shared context and state.
public TestEntityOperation(TestEntityContext context, string name, TestEntityState state, object? input = null, DataConverter? dataConverter = null)
Parameters
contextTestEntityContextThe non-null entity context.
namestringThe non-empty SDK operation name.
stateTestEntityStateThe non-null state shared across sequential operations.
inputobjectThe optional input, serialized immediately.
dataConverterDataConverterThe input converter, or the SDK JSON default.
Properties
Context
Gets the context for this entity operation.
public override TaskEntityContext Context { get; }
Property Value
HasInput
Gets a value indicating whether this operation has input or not.
public override bool HasInput { get; }
Property Value
Name
Gets the name of the operation.
public override string Name { get; }
Property Value
State
Gets the state of the entity.
public override TaskEntityState State { get; }
Property Value
Methods
GetInput(Type)
Gets the input for this operation.
public override object? GetInput(Type inputType)
Parameters
inputTypeTypeThe type to deserialize the input as.
Returns
- object
The deserialized input type.