elsa-core/test/component/Elsa.Workflows.ComponentTests/Scenarios
FuJa0815 c017082f01
Added IEnumerableTypeConverter (#7020)
* Added IEnumerableTypeConverter

* fixed bug and added tests

* Add resource disposal mechanism in ScheduledCronTask

- Introduced `_disposed` flag to prevent execution after disposal.
- Updated disposal logic to ensure proper release of resources.
- Adjusted unit tests to verify new disposal behavior and prevent unintended timer actions.

* Enhance scheduling tasks with edge case handling and disposal improvements

- Added `_disposed` flag to `ScheduledRecurringTask` and `ScheduledSpecificInstantTask` to prevent execution after disposal.
- Adjusted timer setup logic to handle zero/negative delays with a minimum delay of 1ms.
- Updated disposal logic to ensure proper resource cleanup even during timer callbacks.
- Introduced extensive unit tests for edge cases such as small, zero, or negative delay scenarios and proper disposal behavior.

* Update test/component/Elsa.Workflows.ComponentTests/Scenarios/VariablesArray/Activities/RemoveTopElementStep.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Elsa.Common/Serialization/IEnumerableTypeConverter.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/modules/Elsa.Common/Serialization/IEnumerableTypeConverter.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add integration tests for EnumerableTypeConverter and update solution file

- Introduced `Elsa.Common.IntegrationTests` project for testing serialization behavior in `EnumerableTypeConverter`.
- Added tests to verify proper handling of strings, byte arrays, and collections during JSON serialization.
- Registered `EnumerableTypeConverter` in `DefaultFormattersFeature`.
- Renamed `IEnumerableTypeConverter` to `EnumerableTypeConverter` for consistency.
- Updated solution file to include the new integration test project.

---------

Co-authored-by: Sipke Schoorstra <sipkeschoorstra@outlook.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-12 11:07:33 +01:00
..
Activities Add extensive unit and component tests for scheduling activities (#7036) 2025-11-07 21:54:50 +01:00
BasicWorkflows Add ExecuteWorkflow activity (#6134) 2024-11-21 16:44:25 +01:00
CachingAndWorkflowDefinitionActivity Fix semaphore release logic in scheduled task execution (#7045) 2025-11-09 14:14:25 +01:00
ClusteredHosting Add ExecuteWorkflow activity (#6134) 2024-11-21 16:44:25 +01:00
HttpWorkflows Fix route data handling (#6176) 2024-12-04 11:31:03 +01:00
InputOutput Add synthetic properties to JS engine for exclusion (#6178) 2024-12-05 09:30:31 +01:00
JavaScriptVariables Update all dependencies to new projects. 2025-05-21 00:20:13 +01:00
LogPersistenceModes Skip flaky test in InputOutputLoggingTests. 2025-05-20 11:41:00 +02:00
Multitenancy Remove Elsa.Expressions.Dsl module and related DSL features 2025-06-02 21:52:10 +02:00
RestApis Merge 3.5.1 into 3.6.0 (#6907) 2025-09-13 13:05:52 +02:00
Variables Add extensive unit and component tests for scheduling activities (#7036) 2025-11-07 21:54:50 +01:00
VariablesArray Added IEnumerableTypeConverter (#7020) 2025-11-12 11:07:33 +01:00
WorkflowActivities Add ExecuteWorkflow activity (#6134) 2024-11-21 16:44:25 +01:00
WorkflowCompletion Add ExecuteWorkflow activity (#6134) 2024-11-21 16:44:25 +01:00
WorkflowDefinitionRefresh Add distributed workflow runtime implementation. 2025-06-03 09:58:20 +02:00
WorkflowDefinitionReload Fix trigger indexing logic and add tests for trigger persistence after workflow reload. (#6958) 2025-10-10 09:21:11 +02:00
WorkflowJsonStructures Add ExecuteWorkflow activity (#6134) 2024-11-21 16:44:25 +01:00