Namespace Restate.Sdk.Testing
Classes
- MockContext
A mock Context for unit testing stateless service handlers. Side effects execute inline, calls and sends are recorded for verification.
- MockObjectContext
A mock ObjectContext for unit testing virtual object handlers. State is stored in-memory. Side effects execute inline. Calls and sends are recorded.
- MockSharedObjectContext
A mock SharedObjectContext for unit testing shared virtual object handlers. Provides read-only in-memory state. Side effects execute inline. Calls and sends are recorded.
- MockSharedWorkflowContext
A mock SharedWorkflowContext for unit testing shared workflow handlers. Provides read-only in-memory state and durable promise operations (peek/resolve/reject). Side effects execute inline. Calls and sends are recorded.
- MockWorkflowContext
A mock WorkflowContext for unit testing workflow run handlers. State is stored in-memory. Durable promises are stored in-memory for get/resolve/reject. Side effects execute inline. Calls and sends are recorded.
- RecordedCall
A recorded Call invocation.
- RecordedSend
A recorded Send invocation.
- RecordedSignalCompletion
A recorded signal resolution or rejection on another invocation. Exactly one of
NameandSignalIndexis set, and exactly one ofValueandRejectionReason.
- RecordedSleep
A recorded Sleep invocation.