elsa-core/test/component
Sipke Schoorstra 6a0f74e06c
Fix FlowJoin Activity NRE Bug (#5349)
* Update property retrieval in FlowJoin activity

This commit modifies the way flowScope is retrieved within the FlowJoin activity in Elsa.Workflows.Core. Instead of directly calling GetProperty, a fallback value is now being provided in case the desired property is not found. This reduces the risk of null reference exceptions.

* Add FlowJoins component tests

Two new files have been created to facilitate component testing for the FlowJoins scenarios in the Elsa Workflows. The `Tests.cs` file includes a Fact to validate the successful execution of a Flowchart with a single FlowJoin. The `Workflows.cs` file defines a single join workflow for these tests.

* Add RabbitMq support to ComponentTests

Added RabbitMq to Infrastructure.cs for component testing, allowing both RabbitMqContainer and DbContainer to start and stop asynchronously. Also, adjusted WorkflowServer.cs to configure RabbitMq mass transit alongside existing PostgreSql support, aiming to improve testing robustness and coverage.

* Refactor placement of RemoveOrphanedSubscriptions service

Move the implementation of AddNotificationHandler<RemoveOrphanedSubscriptions>() from the notifier block to the singleton section in AzureServiceBusFeature.cs. This will help keep all service registration related to notifications in one place.

* Increase prefetch count
2024-05-08 09:29:15 +02:00
..
Elsa.Workflows.ComponentTests Fix FlowJoin Activity NRE Bug (#5349) 2024-05-08 09:29:15 +02:00
Directory.Build.props Add Component Testing Framework (#5261) 2024-04-26 15:49:14 +02:00