Table of Contents

Class ActivityTracker

Namespace
Ratatoskr.Testing
Assembly
Ratatoskr.Testing.dll

Action-based API for message tracking. Creates a session, executes an action within the session's trace context, and waits for expected completions.

public class ActivityTracker
Inheritance
ActivityTracker
Inherited Members

Methods

ExecuteAndWaitAsync(Func<Task>)

Executes the action within a tracked session and waits for all expected completions. If no explicit wait conditions were added, returns the session immediately after the action completes.

PublishAndWaitAsync<T>(T, MessageProperties?, CancellationToken)

Publishes a message using IRatatoskr and waits for it to be dispatched.

Timeout(TimeSpan)

Sets the timeout for waiting on message activities.

WaitForMessage<T>(MessageStage)

Adds a wait condition: wait for a message of type T at the specified stage.