Skip to content

Conversation

@StuartFerguson
Copy link
Member

This commit refactors the access to TransactionHasBeenCompletedEvent by introducing a DomainEvents class within TestData, improving organization and consistency across test files.

Additionally, retry policies using the Polly library have been implemented in the MerchantStatementDomainEventHandler to enhance event handling resilience. The corresponding test class has been updated to utilize the new event structure.

These changes promote better maintainability and readability of the code while ensuring robust handling of transient failures.

This commit refactors the access to `TransactionHasBeenCompletedEvent` by introducing a `DomainEvents` class within `TestData`, improving organization and consistency across test files.

Additionally, retry policies using the Polly library have been implemented in the `MerchantStatementDomainEventHandler` to enhance event handling resilience. The corresponding test class has been updated to utilize the new event structure.

These changes promote better maintainability and readability of the code while ensuring robust handling of transient failures.
@StuartFerguson StuartFerguson merged commit da4b8c1 into master Feb 25, 2025
5 checks passed
@github-actions github-actions bot deleted the task/#727_domain_event_handler_retry branch April 27, 2025 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MerchantStatementDomainEventHandler - TransactionDomainEvents.TransactionHasBeenCompletedEvent Retry Policy

2 participants