commanded v0.10.0 Commanded.Assertions.EventAssertions

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

Functions

assert_receive_event(event_type, assertion_fn)

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

assert_receive_event(event_type, predicate_fn, assertion_fn)

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

wait_for_event(event_type)

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

wait_for_event(event_type, timeout)

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

wait_for_event(event_type, predicate_fn, timeout)

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