elsa-core/test/unit/Elsa.Workflows.Runtime.UnitTests/Services
Sipke Schoorstra 68a5aa6bd7
fix(runtime): honor transactional outbox for in-workflow PublishEvent (#8177)
* fix(runtime): route PublishEvent through transactional workflow-dispatch outbox

In-workflow async PublishEvent and IEventPublisher now dispatch via
IWorkflowDispatcher so TransactionalWorkflowDispatcher applies when
UseTransactionalOutbox is enabled. Fixes #8150.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* test(runtime): fix PublishEvent outbox conformance tests

Register KeyValueFeature so the dispatch outbox store can persist
TriggerWorkflows items, and avoid expression-tree pattern matching in
the EventPublisher unit tests.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

* test(runtime): assert PublishEvent outbox delivery creates consumer

ProcessAsync only queues the trigger; start the background command
processor and wait until ConsumeOrderShippedEventWorkflow is created.

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-09-15 22:10:29 +02:00
..
BackgroundStimulusDispatcherTests.cs Isolate background workflow dispatches from caller's cancellation token (#7291) 2026-04-14 10:55:38 +02:00
BackgroundWorkflowCancellationDispatcherTests.cs Isolate background workflow dispatches from caller's cancellation token (#7291) 2026-04-14 10:55:38 +02:00
BackgroundWorkflowDispatcherTests.cs Isolate background workflow dispatches from caller's cancellation token (#7291) 2026-04-14 10:55:38 +02:00
BookmarkQueueDeadLetterTests.cs Fix workflow commit atomicity 2026-06-21 19:58:09 +02:00
DefaultActivityExecutionMapperTests.cs fix(runtime): read InternalState from logPersistenceConfig (#8126) 2026-09-13 23:09:36 +02:00
DefaultCommitStateHandlerTests.cs Address PR review comments 2026-06-23 03:07:50 +02:00
DefaultRegistriesPopulatorTests.cs Avoid repeated tenant-agnostic registry population 2026-08-02 01:59:45 +02:00
DefaultWorkflowDefinitionStorePopulatorTests.cs Merge branch 'fix/trigger-indexing-idempotency' 2026-02-24 15:30:54 +01:00
EventPublisherTests.cs fix(runtime): honor transactional outbox for in-workflow PublishEvent (#8177) 2026-09-15 22:10:29 +02:00
KeyValueFeatureTests.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
KeyValueWorkflowDispatchOutboxStoreTests.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00
LocalWorkflowClientTests.cs Improves workflow materializer handling (#7195) 2026-01-19 08:59:12 +01:00
RestartInterruptedWorkflowsTaskTests.cs Fix tenant scope for interrupted workflow restarts (#7389) 2026-04-15 14:11:26 +02:00
StimulusSenderTests.cs fix(runtime): preserve bookmark identity on unmatched-resume enqueue (#8154) 2026-09-14 15:29:07 +02:00
TriggerIndexerTests.cs fix(bpmn): let a process with only a plain start event publish (#8081) 2026-09-12 11:07:59 -07:00
WorkflowCommitNotificationBufferTests.cs fix: restore commit notification scope before flush 2026-07-31 04:50:31 +02:00
WorkflowDispatchOutboxProcessorTests.cs Add workflow dispatch transactional outbox (#7517) 2026-05-22 00:13:16 +02:00