From a698f8daae0f52618df51b88620e10754b33f1fa Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 3 Aug 2026 11:17:27 +0200 Subject: [PATCH] Refactor namespaces for DEX job behaviors Updated namespaces for `CheckQueryExecutionBehavior`, `MainQueryExecutionBehavior`, and `ReCRequestExecutionBehavior` from `ECMJobRunner.Application.Behaviors` to `ECMJobRunner.Application.DEXJob.Commands.Behaviors` to better align with the `DEXJob.Commands` context. Updated `DependencyInjection.cs` and test files to reference the new namespace. Added `using Microsoft.Extensions.Options;` to support the Options pattern in the updated files. --- .../Commands}/Behaviors/CheckQueryExecutionBehavior.cs | 2 +- .../Commands}/Behaviors/MainQueryExecutionBehavior.cs | 2 +- .../Commands}/Behaviors/ReCRequestExecutionBehavior.cs | 2 +- ECMJobRunner.Application/DependencyInjection.cs | 2 +- .../Application/CheckQueryExecutionBehaviorTests.cs | 2 +- .../Application/MainQueryExecutionBehaviorTests.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename ECMJobRunner.Application/{ => DEXJob/Commands}/Behaviors/CheckQueryExecutionBehavior.cs (98%) rename ECMJobRunner.Application/{ => DEXJob/Commands}/Behaviors/MainQueryExecutionBehavior.cs (98%) rename ECMJobRunner.Application/{ => DEXJob/Commands}/Behaviors/ReCRequestExecutionBehavior.cs (97%) diff --git a/ECMJobRunner.Application/Behaviors/CheckQueryExecutionBehavior.cs b/ECMJobRunner.Application/DEXJob/Commands/Behaviors/CheckQueryExecutionBehavior.cs similarity index 98% rename from ECMJobRunner.Application/Behaviors/CheckQueryExecutionBehavior.cs rename to ECMJobRunner.Application/DEXJob/Commands/Behaviors/CheckQueryExecutionBehavior.cs index cfd3970..d0f4f3d 100644 --- a/ECMJobRunner.Application/Behaviors/CheckQueryExecutionBehavior.cs +++ b/ECMJobRunner.Application/DEXJob/Commands/Behaviors/CheckQueryExecutionBehavior.cs @@ -11,7 +11,7 @@ using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; -namespace ECMJobRunner.Application.Behaviors +namespace ECMJobRunner.Application.DEXJob.Commands.Behaviors { /// /// Pipeline behavior that executes the check SQL query for DEX jobs diff --git a/ECMJobRunner.Application/Behaviors/MainQueryExecutionBehavior.cs b/ECMJobRunner.Application/DEXJob/Commands/Behaviors/MainQueryExecutionBehavior.cs similarity index 98% rename from ECMJobRunner.Application/Behaviors/MainQueryExecutionBehavior.cs rename to ECMJobRunner.Application/DEXJob/Commands/Behaviors/MainQueryExecutionBehavior.cs index 6c7ca5f..45866c2 100644 --- a/ECMJobRunner.Application/Behaviors/MainQueryExecutionBehavior.cs +++ b/ECMJobRunner.Application/DEXJob/Commands/Behaviors/MainQueryExecutionBehavior.cs @@ -11,7 +11,7 @@ using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; -namespace ECMJobRunner.Application.Behaviors +namespace ECMJobRunner.Application.DEXJob.Commands.Behaviors { /// /// Pipeline behavior that executes the main SQL query for DEX jobs diff --git a/ECMJobRunner.Application/Behaviors/ReCRequestExecutionBehavior.cs b/ECMJobRunner.Application/DEXJob/Commands/Behaviors/ReCRequestExecutionBehavior.cs similarity index 97% rename from ECMJobRunner.Application/Behaviors/ReCRequestExecutionBehavior.cs rename to ECMJobRunner.Application/DEXJob/Commands/Behaviors/ReCRequestExecutionBehavior.cs index 1b5455b..bfcc7a0 100644 --- a/ECMJobRunner.Application/Behaviors/ReCRequestExecutionBehavior.cs +++ b/ECMJobRunner.Application/DEXJob/Commands/Behaviors/ReCRequestExecutionBehavior.cs @@ -10,7 +10,7 @@ using System; using System.Threading; using System.Threading.Tasks; -namespace ECMJobRunner.Application.Behaviors +namespace ECMJobRunner.Application.DEXJob.Commands.Behaviors { /// /// Pipeline behavior that sends ReC HTTP request for DEX jobs diff --git a/ECMJobRunner.Application/DependencyInjection.cs b/ECMJobRunner.Application/DependencyInjection.cs index d8886fc..e36928d 100644 --- a/ECMJobRunner.Application/DependencyInjection.cs +++ b/ECMJobRunner.Application/DependencyInjection.cs @@ -1,4 +1,4 @@ -using ECMJobRunner.Application.Behaviors; +using ECMJobRunner.Application.DEXJob.Commands.Behaviors; using MediatR; using Microsoft.Extensions.DependencyInjection; using ReC.Client; diff --git a/ECMJobRunner.Tests/Application/CheckQueryExecutionBehaviorTests.cs b/ECMJobRunner.Tests/Application/CheckQueryExecutionBehaviorTests.cs index fcf0447..f14fbb6 100644 --- a/ECMJobRunner.Tests/Application/CheckQueryExecutionBehaviorTests.cs +++ b/ECMJobRunner.Tests/Application/CheckQueryExecutionBehaviorTests.cs @@ -1,10 +1,10 @@ -using ECMJobRunner.Application.Behaviors; using ECMJobRunner.Application.Common.Constants; using ECMJobRunner.Application.Common.Dtos; using ECMJobRunner.Application.Common.Exceptions; using ECMJobRunner.Application.Common.Interfaces; using ECMJobRunner.Application.Common.Options; using ECMJobRunner.Application.DEXJob.Commands; +using ECMJobRunner.Application.DEXJob.Commands.Behaviors; using ECMJobRunner.Domain.Entities; using FluentAssertions; using MediatR; diff --git a/ECMJobRunner.Tests/Application/MainQueryExecutionBehaviorTests.cs b/ECMJobRunner.Tests/Application/MainQueryExecutionBehaviorTests.cs index 98cf3aa..4165c34 100644 --- a/ECMJobRunner.Tests/Application/MainQueryExecutionBehaviorTests.cs +++ b/ECMJobRunner.Tests/Application/MainQueryExecutionBehaviorTests.cs @@ -1,10 +1,10 @@ -using ECMJobRunner.Application.Behaviors; using ECMJobRunner.Application.Common.Constants; using ECMJobRunner.Application.Common.Dtos; using ECMJobRunner.Application.Common.Exceptions; using ECMJobRunner.Application.Common.Interfaces; using ECMJobRunner.Application.Common.Options; using ECMJobRunner.Application.DEXJob.Commands; +using ECMJobRunner.Application.DEXJob.Commands.Behaviors; using ECMJobRunner.Domain.Entities; using FluentAssertions; using MediatR;