Commanded v0.14.0-rc.0 Commanded.Assertions.EventAssertions View Source

Provides test assertion and wait for event functions to help test applications built using Commanded

Link to this section Summary

Functions

Assert that an event of the given event type is published. Verify that event using the assertion function

Assert that an event of the given event type, matching the predicate, is published. Verify that event using the assertion function

Wait for an event of the given event type to be published

Wait for an event of the given event type, matching the predicate, to be published

Wait for an event of the given event type, matching the predicate, to be published until the timeout

Link to this section Functions

Link to this function assert_receive_event(event_type, assertion_fn) View Source

Assert that an event of the given event type is published. Verify that event using the assertion function.

Link to this function assert_receive_event(event_type, predicate_fn, assertion_fn) View Source

Assert that an event of the given event type, matching the predicate, is published. Verify that event using the assertion function.

Link to this function wait_for_event(event_type) View Source

Wait for an event of the given event type to be published

Link to this function wait_for_event(event_type, timeout) View Source

Wait for an event of the given event type, matching the predicate, to be published.

Link to this function wait_for_event(event_type, predicate_fn, timeout) View Source

Wait for an event of the given event type, matching the predicate, to be published until the timeout.