(options =>
@@ -38,7 +38,7 @@ builder.Services.AddMediator(cfg =>
## Usage
```csharp
-using TailoredApps.Shared.MediatR.Email.Messages.Commands;
+using TailoredApps.Shared.Mediator.Email.Messages.Commands;
// EmailTemplates/order-confirmation.html: Order {{OrderNumber}} is on its way.
var result = await mediator.Send(new SendMail
@@ -55,7 +55,7 @@ var result = await mediator.Send(new SendMail
## Good to know
-- Built on [ForkForward.Mediator](https://www.nuget.org/packages/ForkForward.Mediator), a fork of MediatR 12.5.0 under the Apache-2.0 licence, not on the MediatR package: requests and handlers use the `ForkForward.Mediator` namespace and the mediator is registered with `AddMediator(...)`. "MediatR" in the name of this library is its history, not its dependency.
+- Built on [ForkForward.Mediator](https://www.nuget.org/packages/ForkForward.Mediator), a fork of MediatR 12.5.0 under the Apache-2.0 licence, not on the MediatR package: requests and handlers use the `ForkForward.Mediator` namespace and the mediator is registered with `AddMediator(...)`. In 2.x this package was named `TailoredApps.Shared.MediatR.Email`.
- The package reads no configuration itself. The SMTP settings (`Mail:Providers:Smtp`) and the template options
belong to `TailoredApps.Shared.Email`.
@@ -64,7 +64,7 @@ var result = await mediator.Send(new SendMail
- `Template` is the template key handed to `IMailMessageBuilder.Build` together with `TemplateVariables` and
`Templates`. With `TokenReplacingMailMessageBuilder` it is the template file name including the extension;
an unknown key throws `KeyNotFoundException`. `Templates` passes templates inline (key -> content).
-- MediatR resolves the handler as `IRequestHandler`. Registering
+- The mediator resolves the handler as `IRequestHandler`. Registering
`SendMailCommandHandler` only under `ISendMailCommandHandler` is not enough for `mediator.Send`.
- Delivery follows the registered `IEmailProvider`. With the SMTP provider that means one recipient per message
and redirection to the `CatchAll` address while `IsProd` is `false`. The Office 365 provider cannot send.
@@ -74,4 +74,4 @@ var result = await mediator.Send(new SendMail
## Documentation
-https://shared.tailoredapps.pl/en/Libraries/MediatR/Email/
+https://shared.tailoredapps.pl/en/Libraries/Mediator/Email/
diff --git a/src/TailoredApps.Shared.MediatR.Email/Responses/SendMailResponse.cs b/src/TailoredApps.Shared.Mediator.Email/Responses/SendMailResponse.cs
similarity index 85%
rename from src/TailoredApps.Shared.MediatR.Email/Responses/SendMailResponse.cs
rename to src/TailoredApps.Shared.Mediator.Email/Responses/SendMailResponse.cs
index 9b647a4e..a3014131 100644
--- a/src/TailoredApps.Shared.MediatR.Email/Responses/SendMailResponse.cs
+++ b/src/TailoredApps.Shared.Mediator.Email/Responses/SendMailResponse.cs
@@ -1,4 +1,4 @@
-namespace TailoredApps.Shared.MediatR.Email.Responses;
+namespace TailoredApps.Shared.Mediator.Email.Responses;
///
/// Represents the response returned after a command is handled.
diff --git a/src/TailoredApps.Shared.MediatR.Email/TailoredApps.Shared.MediatR.Email.csproj b/src/TailoredApps.Shared.Mediator.Email/TailoredApps.Shared.Mediator.Email.csproj
similarity index 100%
rename from src/TailoredApps.Shared.MediatR.Email/TailoredApps.Shared.MediatR.Email.csproj
rename to src/TailoredApps.Shared.Mediator.Email/TailoredApps.Shared.Mediator.Email.csproj
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Message/Commands/ClassifyImage.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Message/Commands/ClassifyImage.cs
similarity index 66%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Message/Commands/ClassifyImage.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Message/Commands/ClassifyImage.cs
index 73f927f1..16214d5d 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Message/Commands/ClassifyImage.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Message/Commands/ClassifyImage.cs
@@ -1,10 +1,10 @@
using ForkForward.Mediator;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
///
-/// MediatR command that requests classification of a single image.
+/// Mediator command that requests classification of a single image.
/// Returns a containing the prediction result.
///
public class ClassifyImage : IRequest
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Message/Commands/TrainImageClassificationModel.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Message/Commands/TrainImageClassificationModel.cs
similarity index 69%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Message/Commands/TrainImageClassificationModel.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Message/Commands/TrainImageClassificationModel.cs
index ae400271..14ded898 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Message/Commands/TrainImageClassificationModel.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Message/Commands/TrainImageClassificationModel.cs
@@ -1,10 +1,10 @@
using ForkForward.Mediator;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
///
-/// MediatR command that requests training of a new image classification model
+/// Mediator command that requests training of a new image classification model
/// from a labelled image dataset. Returns a
/// containing the trained model path, version, and evaluation metadata.
///
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Models/ImagePrediction.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Models/ImagePrediction.cs
similarity index 89%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Models/ImagePrediction.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Models/ImagePrediction.cs
index 51c0bca9..8207a28e 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Models/ImagePrediction.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Models/ImagePrediction.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
///
/// Represents the result of an image classification prediction,
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Models/ModelInfo.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Models/ModelInfo.cs
similarity index 91%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Models/ModelInfo.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Models/ModelInfo.cs
index 5cdb26b7..8cbb1dbc 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Models/ModelInfo.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Models/ModelInfo.cs
@@ -1,4 +1,4 @@
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
///
/// Represents metadata about a trained ML model, including its name, checksum, version, and class labels.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Responses/Commands/ClassifyImageResponse.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Responses/Commands/ClassifyImageResponse.cs
similarity index 67%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Responses/Commands/ClassifyImageResponse.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Responses/Commands/ClassifyImageResponse.cs
index 2eb7db2d..dbb225bf 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Responses/Commands/ClassifyImageResponse.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Responses/Commands/ClassifyImageResponse.cs
@@ -1,6 +1,6 @@
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
///
/// Represents the response returned after handling a ClassifyImage command,
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Responses/Commands/TrainImageClassificationModelResponse.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Responses/Commands/TrainImageClassificationModelResponse.cs
similarity index 81%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Responses/Commands/TrainImageClassificationModelResponse.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Responses/Commands/TrainImageClassificationModelResponse.cs
index db2ee72b..86e7e27c 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/DataModel/Responses/Commands/TrainImageClassificationModelResponse.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/DataModel/Responses/Commands/TrainImageClassificationModelResponse.cs
@@ -1,6 +1,6 @@
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
///
/// Represents the response returned after handling a TrainImageClassificationModel command,
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/Handlers/Commands/ClassifyImageCommandHandler.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/Handlers/Commands/ClassifyImageCommandHandler.cs
similarity index 84%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/Handlers/Commands/ClassifyImageCommandHandler.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/Handlers/Commands/ClassifyImageCommandHandler.cs
index 9bddb0f9..e391756f 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/Handlers/Commands/ClassifyImageCommandHandler.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/Handlers/Commands/ClassifyImageCommandHandler.cs
@@ -2,17 +2,17 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Validation;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Validation;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
///
-/// Handles the MediatR command by invoking the image classification service
+/// Handles the mediator command by invoking the image classification service
/// and returning the prediction result.
///
///
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/Handlers/Commands/TrainImageClassificationModelCommandHandler.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/Handlers/Commands/TrainImageClassificationModelCommandHandler.cs
similarity index 92%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/Handlers/Commands/TrainImageClassificationModelCommandHandler.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/Handlers/Commands/TrainImageClassificationModelCommandHandler.cs
index 9b596d37..c435bdd1 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/Handlers/Commands/TrainImageClassificationModelCommandHandler.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/Handlers/Commands/TrainImageClassificationModelCommandHandler.cs
@@ -5,17 +5,17 @@
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
-using TailoredApps.Shared.MediatR.ML.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ML.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
///
-/// Handles the MediatR command by loading training images,
+/// Handles the mediator command by loading training images,
/// training a classification model, and persisting the result with version and label metadata.
///
///
diff --git a/src/TailoredApps.Shared.MediatR.ML/Domain/Validation/ImageValidationExtension.cs b/src/TailoredApps.Shared.Mediator.ML/Domain/Validation/ImageValidationExtension.cs
similarity index 94%
rename from src/TailoredApps.Shared.MediatR.ML/Domain/Validation/ImageValidationExtension.cs
rename to src/TailoredApps.Shared.Mediator.ML/Domain/Validation/ImageValidationExtension.cs
index 1f8bf277..3773551c 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Domain/Validation/ImageValidationExtension.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Domain/Validation/ImageValidationExtension.cs
@@ -2,7 +2,7 @@
using System.Linq;
using System.Text;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Domain.Validation;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Domain.Validation;
///
/// Provides extension methods for validating image byte arrays.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/AddPredictionEngineExtension.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/AddPredictionEngineExtension.cs
similarity index 86%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/AddPredictionEngineExtension.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/AddPredictionEngineExtension.cs
index edc497f9..61e54a99 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/AddPredictionEngineExtension.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/AddPredictionEngineExtension.cs
@@ -1,11 +1,11 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.ML;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
-using TailoredApps.Shared.MediatR.ML.Infrastructure;
-using static TailoredApps.Shared.MediatR.ImageClassification.Infrastructure.ImageClassificationOptions;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ML.Infrastructure;
+using static TailoredApps.Shared.Mediator.ImageClassification.Infrastructure.ImageClassificationOptions;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
///
/// Provides extension methods for configuring the prediction engine and image classification services
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ClassificationService.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ClassificationService.cs
similarity index 93%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/ClassificationService.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/ClassificationService.cs
index 7987546f..9396effe 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ClassificationService.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ClassificationService.cs
@@ -5,12 +5,12 @@
using System.Text;
using Microsoft.ML;
using Microsoft.ML.Data;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
///
/// Provides image classification and model training functionality using ML.NET.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/FileUtils.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/FileUtils.cs
similarity index 95%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/FileUtils.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/FileUtils.cs
index 8ded3e1a..6b7c5885 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/FileUtils.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/FileUtils.cs
@@ -6,7 +6,7 @@
using System.Text;
using System.Threading.Tasks;
-namespace TailoredApps.Shared.MediatR.ML.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ML.Infrastructure;
///
/// Provides utility methods for file and directory operations used in ML pipelines.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ImageClassificationOptions.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ImageClassificationOptions.cs
similarity index 98%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/ImageClassificationOptions.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/ImageClassificationOptions.cs
index 37554c6b..f94223a8 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ImageClassificationOptions.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ImageClassificationOptions.cs
@@ -1,7 +1,7 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
///
/// Configuration options for the image classification feature, bound from the application configuration.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ModelHelper.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ModelHelper.cs
similarity index 94%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/ModelHelper.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/ModelHelper.cs
index 72aa0525..7508703d 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ModelHelper.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ModelHelper.cs
@@ -3,9 +3,9 @@
using System.IO.Compression;
using System.Linq;
using System.Security.Cryptography;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
///
/// Provides helper operations for ML model files, including versioning, label management, and checksum computation.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ModelInfoService.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ModelInfoService.cs
similarity index 86%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/ModelInfoService.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/ModelInfoService.cs
index 5aae8c1b..8c274f13 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/ModelInfoService.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/ModelInfoService.cs
@@ -1,9 +1,9 @@
using System.IO;
using Microsoft.Extensions.Options;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
///
/// Provides metadata about the currently configured ML model by reading from the model file and configuration.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/PredictionEnginePoolAdapter.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/PredictionEnginePoolAdapter.cs
similarity index 91%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/PredictionEnginePoolAdapter.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/PredictionEnginePoolAdapter.cs
index 3f8739b3..9efb8827 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/PredictionEnginePoolAdapter.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/PredictionEnginePoolAdapter.cs
@@ -2,9 +2,9 @@
using System.Linq;
using Microsoft.Extensions.ML;
using Microsoft.ML.Data;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
///
/// Adapts a to the
diff --git a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/PredictionEngineServiceConfiguration.cs b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/PredictionEngineServiceConfiguration.cs
similarity index 89%
rename from src/TailoredApps.Shared.MediatR.ML/Infrastructure/PredictionEngineServiceConfiguration.cs
rename to src/TailoredApps.Shared.Mediator.ML/Infrastructure/PredictionEngineServiceConfiguration.cs
index 6babba60..8681ae89 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Infrastructure/PredictionEngineServiceConfiguration.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Infrastructure/PredictionEngineServiceConfiguration.cs
@@ -1,9 +1,9 @@
using System;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.ML;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
-namespace TailoredApps.Shared.MediatR.ML.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ML.Infrastructure;
///
/// Provides configuration support for registering machine learning prediction engine models
diff --git a/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Handlers/Commands/IClassifyImageCommandHandler.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Handlers/Commands/IClassifyImageCommandHandler.cs
new file mode 100644
index 00000000..581945f2
--- /dev/null
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Handlers/Commands/IClassifyImageCommandHandler.cs
@@ -0,0 +1,13 @@
+using ForkForward.Mediator;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
+
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Handlers.Commands;
+
+///
+/// Mediator handler contract for the command.
+/// Implementations run the ML classification pipeline and return a .
+///
+public interface IClassifyImageCommandHandler : IRequestHandler
+{
+}
diff --git a/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Handlers/Commands/ITrainImageClassificationModelCommandHandler.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Handlers/Commands/ITrainImageClassificationModelCommandHandler.cs
new file mode 100644
index 00000000..6e5325d3
--- /dev/null
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Handlers/Commands/ITrainImageClassificationModelCommandHandler.cs
@@ -0,0 +1,13 @@
+using ForkForward.Mediator;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
+
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Handlers.Commands;
+
+///
+/// Mediator handler contract for the command.
+/// Implementations train a new ML.NET image classification model and return a .
+///
+public interface ITrainImageClassificationModelCommandHandler : IRequestHandler
+{
+}
diff --git a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Domain/Models/ImagePredictionScore.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Models/ImagePredictionScore.cs
similarity index 85%
rename from src/TailoredApps.Shared.MediatR.ML/Interfaces/Domain/Models/ImagePredictionScore.cs
rename to src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Models/ImagePredictionScore.cs
index 4eeb28e2..1d45bffb 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Domain/Models/ImagePredictionScore.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Models/ImagePredictionScore.cs
@@ -1,6 +1,6 @@
using Microsoft.ML.Data;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
///
/// Represents the raw output of the ML.NET image classification prediction engine,
diff --git a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Domain/Models/InMemoryImageData.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Models/InMemoryImageData.cs
similarity index 90%
rename from src/TailoredApps.Shared.MediatR.ML/Interfaces/Domain/Models/InMemoryImageData.cs
rename to src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Models/InMemoryImageData.cs
index 34e5e5d7..0dea9b69 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Domain/Models/InMemoryImageData.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Domain/Models/InMemoryImageData.cs
@@ -1,4 +1,4 @@
-namespace TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
///
/// Represents an in-memory image along with its optional label and file name,
diff --git a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IClassificationService.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IClassificationService.cs
similarity index 84%
rename from src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IClassificationService.cs
rename to src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IClassificationService.cs
index 8fd22466..f47e34b7 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IClassificationService.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IClassificationService.cs
@@ -1,8 +1,8 @@
using System.Collections.Generic;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
-namespace TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
///
/// Abstraction for the image classification service that wraps the ML.NET prediction engine.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IModelHelper.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IModelHelper.cs
similarity index 92%
rename from src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IModelHelper.cs
rename to src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IModelHelper.cs
index 7670137f..22306f39 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IModelHelper.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IModelHelper.cs
@@ -1,4 +1,4 @@
-namespace TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
///
/// Provides helpers for reading and writing metadata embedded inside a trained ML.NET model file.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IModelInfoService.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IModelInfoService.cs
similarity index 87%
rename from src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IModelInfoService.cs
rename to src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IModelInfoService.cs
index fb4960ac..00bd29ba 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IModelInfoService.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IModelInfoService.cs
@@ -1,4 +1,4 @@
-namespace TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
///
/// Exposes metadata about the currently loaded image classification model.
diff --git a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IPredictionEnginePoolAdapter.cs b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IPredictionEnginePoolAdapter.cs
similarity index 88%
rename from src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IPredictionEnginePoolAdapter.cs
rename to src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IPredictionEnginePoolAdapter.cs
index 1cb56a55..fcbe338d 100644
--- a/src/TailoredApps.Shared.MediatR.ML/Interfaces/Infrastructure/IPredictionEnginePoolAdapter.cs
+++ b/src/TailoredApps.Shared.Mediator.ML/Interfaces/Infrastructure/IPredictionEnginePoolAdapter.cs
@@ -1,4 +1,4 @@
-namespace TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+namespace TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
///
/// Adapter that wraps an ML.NET PredictionEnginePool and exposes a simplified prediction API.
diff --git a/src/TailoredApps.Shared.MediatR.ML/README.md b/src/TailoredApps.Shared.Mediator.ML/README.md
similarity index 83%
rename from src/TailoredApps.Shared.MediatR.ML/README.md
rename to src/TailoredApps.Shared.Mediator.ML/README.md
index 1ce488ef..161cda2f 100644
--- a/src/TailoredApps.Shared.MediatR.ML/README.md
+++ b/src/TailoredApps.Shared.Mediator.ML/README.md
@@ -1,21 +1,21 @@
-# TailoredApps.Shared.MediatR.ML
+# TailoredApps.Shared.Mediator.ML
-Image classification with ML.NET as MediatR requests. `ClassifyImage` runs a trained model on an uploaded image
+Image classification with ML.NET as mediator requests. `ClassifyImage` runs a trained model on an uploaded image
and `TrainImageClassificationModel` trains a new model from folders of labelled images. The code lives in the
-namespace `TailoredApps.Shared.MediatR.ImageClassification`, not under the package name.
+namespace `TailoredApps.Shared.Mediator.ImageClassification`, not under the package name.
## Installation
```bash
-dotnet add package TailoredApps.Shared.MediatR.ML
+dotnet add package TailoredApps.Shared.Mediator.ML
```
## Registration
```csharp
using Microsoft.Extensions.ML;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
// The handlers of both commands are in this package's assembly
builder.Services.AddMediator(cfg =>
@@ -36,7 +36,7 @@ where the model is loaded from is decided by the pool builder you configure (`Fr
## Usage
```csharp
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
var classified = await mediator.Send(new ClassifyImage { FileByteArray = imageBytes, FileName = "photo.jpg" });
var label = classified.ImagePrediction?.PredictedLabel;
@@ -74,7 +74,7 @@ The `ImageClassification` section:
## Good to know
-- Built on [ForkForward.Mediator](https://www.nuget.org/packages/ForkForward.Mediator), a fork of MediatR 12.5.0 under the Apache-2.0 licence, not on the MediatR package: requests and handlers use the `ForkForward.Mediator` namespace and the mediator is registered with `AddMediator(...)`. "MediatR" in the name of this library is its history, not its dependency.
+- Built on [ForkForward.Mediator](https://www.nuget.org/packages/ForkForward.Mediator), a fork of MediatR 12.5.0 under the Apache-2.0 licence, not on the MediatR package: requests and handlers use the `ForkForward.Mediator` namespace and the mediator is registered with `AddMediator(...)`. In 2.x this package was named `TailoredApps.Shared.MediatR.ML`.
- The section is required: without it the options throw `InvalidOperationException` when first used.
- `ClassifyImage` throws `ArgumentException` for empty content, for content over `MaxImageBytes` and for
content that does not start with a JPEG or PNG signature. Only `FileName`, `PredictedLabel` and
@@ -87,8 +87,8 @@ The `ImageClassification` section:
timestamp) and `Labels.txt` are added.
- Prediction uses the default model of the pool, so register the model without a model name.
- `PredictionEngineServiceConfiguration` is the one public type in the namespace
- `TailoredApps.Shared.MediatR.ML.Infrastructure`.
+ `TailoredApps.Shared.Mediator.ML.Infrastructure`.
## Documentation
-https://shared.tailoredapps.pl/en/Libraries/MediatR/ML/
+https://shared.tailoredapps.pl/en/Libraries/Mediator/ML/
diff --git a/src/TailoredApps.Shared.MediatR.ML/TailoredApps.Shared.MediatR.ML.csproj b/src/TailoredApps.Shared.Mediator.ML/TailoredApps.Shared.Mediator.ML.csproj
similarity index 82%
rename from src/TailoredApps.Shared.MediatR.ML/TailoredApps.Shared.MediatR.ML.csproj
rename to src/TailoredApps.Shared.Mediator.ML/TailoredApps.Shared.Mediator.ML.csproj
index b6c280d1..748b30e4 100644
--- a/src/TailoredApps.Shared.MediatR.ML/TailoredApps.Shared.MediatR.ML.csproj
+++ b/src/TailoredApps.Shared.Mediator.ML/TailoredApps.Shared.Mediator.ML.csproj
@@ -14,11 +14,11 @@
-
+
-
+
diff --git a/src/TailoredApps.Shared.MediatR.PagedRequest/PagedAndSortedRequest.cs b/src/TailoredApps.Shared.Mediator.PagedRequest/PagedAndSortedRequest.cs
similarity index 89%
rename from src/TailoredApps.Shared.MediatR.PagedRequest/PagedAndSortedRequest.cs
rename to src/TailoredApps.Shared.Mediator.PagedRequest/PagedAndSortedRequest.cs
index 5c01d156..3be309dc 100644
--- a/src/TailoredApps.Shared.MediatR.PagedRequest/PagedAndSortedRequest.cs
+++ b/src/TailoredApps.Shared.Mediator.PagedRequest/PagedAndSortedRequest.cs
@@ -2,11 +2,11 @@
using ForkForward.Mediator;
using TailoredApps.Shared.Querying;
-namespace TailoredApps.Shared.MediatR.PagedRequest;
+namespace TailoredApps.Shared.Mediator.PagedRequest;
///
-/// Base MediatR request that combines paging and sorting parameters.
-/// Implement this to pass paged + sorted queries through the MediatR pipeline.
+/// Base mediator request that combines paging and sorting parameters.
+/// Implement this to pass paged + sorted queries through the mediator pipeline.
///
/// The response type returned by the handler (must implement ).
/// The filter/query object type (must derive from ).
diff --git a/src/TailoredApps.Shared.MediatR.PagedRequest/README.md b/src/TailoredApps.Shared.Mediator.PagedRequest/README.md
similarity index 88%
rename from src/TailoredApps.Shared.MediatR.PagedRequest/README.md
rename to src/TailoredApps.Shared.Mediator.PagedRequest/README.md
index fce1683d..51cc0f2a 100644
--- a/src/TailoredApps.Shared.MediatR.PagedRequest/README.md
+++ b/src/TailoredApps.Shared.Mediator.PagedRequest/README.md
@@ -1,19 +1,19 @@
-# TailoredApps.Shared.MediatR.PagedRequest
+# TailoredApps.Shared.Mediator.PagedRequest
-`PagedAndSortedRequest`: a base class for MediatR requests that return one page of a
+`PagedAndSortedRequest`: a base class for mediator requests that return one page of a
list. It carries the page, the page size, the sort field and direction and a filter object, so every list
request in an application has the same shape. The contracts it implements come from `TailoredApps.Shared.Querying`.
## Installation
```bash
-dotnet add package TailoredApps.Shared.MediatR.PagedRequest
+dotnet add package TailoredApps.Shared.Mediator.PagedRequest
```
## Registration
Nothing to register: the package has no dependency-injection extension. Requests derived from the base class
-are ordinary MediatR requests (`IRequest`).
+are ordinary mediator requests (`IRequest`).
## Usage
@@ -22,7 +22,7 @@ the request directly and validate what the client sent.
```csharp
using TailoredApps.Shared.EntityFramework.Querying;
-using TailoredApps.Shared.MediatR.PagedRequest;
+using TailoredApps.Shared.Mediator.PagedRequest;
using TailoredApps.Shared.Querying;
public class ProductFilter : QueryBase
@@ -66,7 +66,7 @@ public class GetProductsHandler(ShopDbContext db) : IRequestHandler`.
- The class only carries the values. `Page`, `Count` and `SortField` usually come straight from the HTTP
request and are not checked here: a handler that calls `Skip`/`Take` itself has to limit the page size.
@@ -79,4 +79,4 @@ public class GetProductsHandler(ShopDbContext db) : IRequestHandler
/// Gives serializers built from the JSON metadata of a ,
diff --git a/src/TailoredApps.Shared.MediatR/DI/PipelineRegistration.cs b/src/TailoredApps.Shared.Mediator/DI/PipelineRegistration.cs
similarity index 93%
rename from src/TailoredApps.Shared.MediatR/DI/PipelineRegistration.cs
rename to src/TailoredApps.Shared.Mediator/DI/PipelineRegistration.cs
index d24b81fb..63c2cf77 100644
--- a/src/TailoredApps.Shared.MediatR/DI/PipelineRegistration.cs
+++ b/src/TailoredApps.Shared.Mediator/DI/PipelineRegistration.cs
@@ -6,18 +6,18 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Scrutor;
-using TailoredApps.Shared.MediatR.Caching;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.Interfaces.DI;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.DI;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
-namespace TailoredApps.Shared.MediatR.DI;
+namespace TailoredApps.Shared.Mediator.DI;
///
/// Default implementation of that registers all standard
-/// MediatR pipeline behaviors (Logging, Validation, Caching, Fallback, Retry) into the
+/// Mediator pipeline behaviors (Logging, Validation, Caching, Fallback, Retry) into the
/// dependency injection container.
///
public class PipelineRegistration : IPipelineRegistration
@@ -40,7 +40,7 @@ public void RegisterPipelineBehaviors()
// registered IDistributedCache. Nothing is replaced if the host has already added one.
serviceCollection.AddHybridCache();
- // Register MediatR Pipeline Behaviors
+ // Register the pipeline behaviors
serviceCollection.AddTransient(typeof(IPipelineBehavior<,>), typeof(LoggingBehavior<,>));
serviceCollection.AddTransient(typeof(IPipelineBehavior<,>), typeof(ValidationBehavior<,>));
serviceCollection.AddTransient(typeof(IPipelineBehavior<,>), typeof(CachingBehavior<,>));
diff --git a/src/TailoredApps.Shared.MediatR/Interfaces/Caching/ICachePolicy.cs b/src/TailoredApps.Shared.Mediator/Interfaces/Caching/ICachePolicy.cs
similarity index 95%
rename from src/TailoredApps.Shared.MediatR/Interfaces/Caching/ICachePolicy.cs
rename to src/TailoredApps.Shared.Mediator/Interfaces/Caching/ICachePolicy.cs
index 3f9e37be..6502d1ff 100644
--- a/src/TailoredApps.Shared.MediatR/Interfaces/Caching/ICachePolicy.cs
+++ b/src/TailoredApps.Shared.Mediator/Interfaces/Caching/ICachePolicy.cs
@@ -8,10 +8,10 @@
using System.Text.Json.Serialization.Metadata;
using ForkForward.Mediator;
-namespace TailoredApps.Shared.MediatR.Interfaces.Caching;
+namespace TailoredApps.Shared.Mediator.Interfaces.Caching;
///
-/// Defines the caching policy for a MediatR request/response pair.
+/// Defines the caching policy for a mediator request/response pair.
/// Provides default expiration values via C# 8.0 default interface implementations.
/// Implement this interface to customise cache key generation or expiration strategy
/// for a specific request type.
@@ -24,7 +24,7 @@ namespace TailoredApps.Shared.MediatR.Interfaces.Caching;
/// and prefix the key with the caller's identity, or responses will be
/// shared between users.
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public interface ICachePolicy where TRequest : IRequest
{
@@ -58,7 +58,7 @@ public interface ICachePolicy where TRequest : IRequest
- /// The MediatR request instance.
+ /// The mediator request instance.
/// A string that uniquely identifies this request's content in the cache.
string GetCacheKey(TRequest request)
{
@@ -67,7 +67,7 @@ string GetCacheKey(TRequest request)
}
///
-/// Builds content-based cache keys for MediatR requests.
+/// Builds content-based cache keys for mediator requests.
///
public static class CacheKeyGenerator
{
diff --git a/src/TailoredApps.Shared.MediatR/Interfaces/DI/IPipelineRegistration.cs b/src/TailoredApps.Shared.Mediator/Interfaces/DI/IPipelineRegistration.cs
similarity index 87%
rename from src/TailoredApps.Shared.MediatR/Interfaces/DI/IPipelineRegistration.cs
rename to src/TailoredApps.Shared.Mediator/Interfaces/DI/IPipelineRegistration.cs
index 7e444029..e82a9a27 100644
--- a/src/TailoredApps.Shared.MediatR/Interfaces/DI/IPipelineRegistration.cs
+++ b/src/TailoredApps.Shared.Mediator/Interfaces/DI/IPipelineRegistration.cs
@@ -1,10 +1,10 @@
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
-namespace TailoredApps.Shared.MediatR.Interfaces.DI;
+namespace TailoredApps.Shared.Mediator.Interfaces.DI;
///
-/// Contract for registering MediatR pipeline behaviors into the dependency injection container.
+/// Contract for registering mediator pipeline behaviors into the dependency injection container.
///
public interface IPipelineRegistration
{
diff --git a/src/TailoredApps.Shared.MediatR/Interfaces/Handlers/IFallbackHandler.cs b/src/TailoredApps.Shared.Mediator/Interfaces/Handlers/IFallbackHandler.cs
similarity index 66%
rename from src/TailoredApps.Shared.MediatR/Interfaces/Handlers/IFallbackHandler.cs
rename to src/TailoredApps.Shared.Mediator/Interfaces/Handlers/IFallbackHandler.cs
index 3cec72c0..ee450cf7 100644
--- a/src/TailoredApps.Shared.MediatR/Interfaces/Handlers/IFallbackHandler.cs
+++ b/src/TailoredApps.Shared.Mediator/Interfaces/Handlers/IFallbackHandler.cs
@@ -2,14 +2,14 @@
using System.Threading.Tasks;
using ForkForward.Mediator;
-namespace TailoredApps.Shared.MediatR.Interfaces.Handlers;
+namespace TailoredApps.Shared.Mediator.Interfaces.Handlers;
///
-/// Fallback handler invoked by
-/// when the primary MediatR handler throws an exception. Implement this interface to provide
+/// Fallback handler invoked by
+/// when the primary mediator handler throws an exception. Implement this interface to provide
/// a graceful alternative response instead of propagating the error.
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public interface IFallbackHandler where TRequest : IRequest
{
@@ -17,7 +17,7 @@ public interface IFallbackHandler where TRequest : IRequest
/// Handles the request in fallback mode, providing an alternative response when the
/// primary handler has failed.
///
- /// The original MediatR request that triggered the fallback.
+ /// The original mediator request that triggered the fallback.
/// A token to cancel the asynchronous operation.
/// A fallback response of type .
Task HandleFallback(TRequest request, CancellationToken cancellationToken);
diff --git a/src/TailoredApps.Shared.MediatR/Interfaces/Messages/IRetryableRequest.cs b/src/TailoredApps.Shared.Mediator/Interfaces/Messages/IRetryableRequest.cs
similarity index 80%
rename from src/TailoredApps.Shared.MediatR/Interfaces/Messages/IRetryableRequest.cs
rename to src/TailoredApps.Shared.Mediator/Interfaces/Messages/IRetryableRequest.cs
index 564ef955..4913b121 100644
--- a/src/TailoredApps.Shared.MediatR/Interfaces/Messages/IRetryableRequest.cs
+++ b/src/TailoredApps.Shared.Mediator/Interfaces/Messages/IRetryableRequest.cs
@@ -1,13 +1,13 @@
using ForkForward.Mediator;
-namespace TailoredApps.Shared.MediatR.Interfaces.Messages;
+namespace TailoredApps.Shared.Mediator.Interfaces.Messages;
///
-/// Marker interface for MediatR requests that support retry and circuit-breaker behaviour.
+/// Marker interface for mediator requests that support retry and circuit-breaker behaviour.
/// Implement this interface on a request class (or a dedicated policy class) to configure
/// retry attempts, delay, exponential backoff, and circuit-breaker thresholds.
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public interface IRetryableRequest where TRequest : IRequest
{
diff --git a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/CachingBehavior.cs b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/CachingBehavior.cs
similarity index 91%
rename from src/TailoredApps.Shared.MediatR/PipelineBehaviours/CachingBehavior.cs
rename to src/TailoredApps.Shared.Mediator/PipelineBehaviours/CachingBehavior.cs
index 9e5628ae..c65eb6bc 100644
--- a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/CachingBehavior.cs
+++ b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/CachingBehavior.cs
@@ -6,12 +6,12 @@
using ForkForward.Mediator;
using Microsoft.Extensions.Caching.Hybrid;
using Microsoft.Extensions.Logging;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
-namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
+namespace TailoredApps.Shared.Mediator.PipelineBehaviours;
///
-/// MediatR pipeline behavior that caches responses in . A request with an
+/// Mediator pipeline behavior that caches responses in . A request with an
/// is answered from the cache when an entry exists;
/// otherwise the handler runs and its response is stored according to the policy.
///
@@ -26,7 +26,7 @@ namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
/// 0 or false. A handler that throws caches nothing.
///
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public class CachingBehavior : IPipelineBehavior where TRequest : IRequest
{
@@ -62,7 +62,7 @@ public CachingBehavior(
/// pipeline step and caching its response. If no cache policy is registered for the request type,
/// the pipeline continues without caching.
///
- /// The incoming MediatR request.
+ /// The incoming mediator request.
/// The next handler delegate in the pipeline.
/// Token used to cancel the operation.
/// The response, either from the cache or from the handler.
diff --git a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/CircuitBreakerOpenException.cs b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/CircuitBreakerOpenException.cs
similarity index 95%
rename from src/TailoredApps.Shared.MediatR/PipelineBehaviours/CircuitBreakerOpenException.cs
rename to src/TailoredApps.Shared.Mediator/PipelineBehaviours/CircuitBreakerOpenException.cs
index a6f7cbf3..b186b5be 100644
--- a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/CircuitBreakerOpenException.cs
+++ b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/CircuitBreakerOpenException.cs
@@ -1,6 +1,6 @@
using System;
-namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
+namespace TailoredApps.Shared.Mediator.PipelineBehaviours;
///
/// Thrown by when requests of a type keep failing and
diff --git a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/FallbackBehavior.cs b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/FallbackBehavior.cs
similarity index 87%
rename from src/TailoredApps.Shared.MediatR/PipelineBehaviours/FallbackBehavior.cs
rename to src/TailoredApps.Shared.Mediator/PipelineBehaviours/FallbackBehavior.cs
index 1919fb30..3e1b60ca 100644
--- a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/FallbackBehavior.cs
+++ b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/FallbackBehavior.cs
@@ -5,19 +5,19 @@
using System.Threading.Tasks;
using ForkForward.Mediator;
using Microsoft.Extensions.Logging;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
-namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
+namespace TailoredApps.Shared.Mediator.PipelineBehaviours;
///
-/// MediatR pipeline behavior that answers a request from an
+/// Mediator pipeline behavior that answers a request from an
/// when the rest of the pipeline throws.
/// A request without a registered fallback handler passes through unchanged.
///
///
/// A request cancelled by its caller is not sent to the fallback: the cancellation propagates.
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public class FallbackBehavior : IPipelineBehavior
where TRequest : IRequest
@@ -39,7 +39,7 @@ public FallbackBehavior(IEnumerable> fallb
///
/// Executes the next pipeline step and, if it throws, returns the fallback handler's response instead.
///
- /// The incoming MediatR request.
+ /// The incoming mediator request.
/// The next handler delegate in the pipeline.
/// Token used to cancel the operation.
/// The response of the pipeline, or of the fallback handler when the pipeline failed.
diff --git a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/LoggingBehavior.cs b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/LoggingBehavior.cs
similarity index 94%
rename from src/TailoredApps.Shared.MediatR/PipelineBehaviours/LoggingBehavior.cs
rename to src/TailoredApps.Shared.Mediator/PipelineBehaviours/LoggingBehavior.cs
index 065541a6..5129b299 100644
--- a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/LoggingBehavior.cs
+++ b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/LoggingBehavior.cs
@@ -6,10 +6,10 @@
using ForkForward.Mediator;
using Microsoft.Extensions.Logging;
-namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
+namespace TailoredApps.Shared.Mediator.PipelineBehaviours;
///
-/// MediatR pipeline behavior that logs the execution time of every request and captures any
+/// Mediator pipeline behavior that logs the execution time of every request and captures any
/// exceptions that occur during handler processing.
///
///
@@ -26,7 +26,7 @@ namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
/// written while the handler runs. Log payload fields explicitly in the handler when needed.
///
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public class LoggingBehavior : IPipelineBehavior where TRequest : IRequest
{
diff --git a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/RetryBehavior.cs b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/RetryBehavior.cs
similarity index 93%
rename from src/TailoredApps.Shared.MediatR/PipelineBehaviours/RetryBehavior.cs
rename to src/TailoredApps.Shared.Mediator/PipelineBehaviours/RetryBehavior.cs
index a7496bb7..aeb8ae56 100644
--- a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/RetryBehavior.cs
+++ b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/RetryBehavior.cs
@@ -5,12 +5,12 @@
using System.Threading.Tasks;
using ForkForward.Mediator;
using Microsoft.Extensions.Logging;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
-namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
+namespace TailoredApps.Shared.Mediator.PipelineBehaviours;
///
-/// MediatR pipeline behavior that retries a failing request and stops calling a handler that keeps
+/// Mediator pipeline behavior that retries a failing request and stops calling a handler that keeps
/// failing. It applies to requests with a registered .
///
///
@@ -26,7 +26,7 @@ namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
/// client cannot open the circuit for everyone else.
///
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public class RetryBehavior : IPipelineBehavior where TRequest : IRequest
{
@@ -62,7 +62,7 @@ public RetryBehavior(
///
/// Executes the next pipeline step with the retry and circuit-breaker rules of the request type.
///
- /// The incoming MediatR request.
+ /// The incoming mediator request.
/// The next handler delegate in the pipeline.
/// Token used to cancel the operation, including the wait between retries.
/// The response of the pipeline.
diff --git a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/ValidationBehavior.cs b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/ValidationBehavior.cs
similarity index 84%
rename from src/TailoredApps.Shared.MediatR/PipelineBehaviours/ValidationBehavior.cs
rename to src/TailoredApps.Shared.Mediator/PipelineBehaviours/ValidationBehavior.cs
index 4d8cdd13..949c095b 100644
--- a/src/TailoredApps.Shared.MediatR/PipelineBehaviours/ValidationBehavior.cs
+++ b/src/TailoredApps.Shared.Mediator/PipelineBehaviours/ValidationBehavior.cs
@@ -5,14 +5,14 @@
using FluentValidation;
using ForkForward.Mediator;
-namespace TailoredApps.Shared.MediatR.PipelineBehaviours;
+namespace TailoredApps.Shared.Mediator.PipelineBehaviours;
///
-/// MediatR pipeline behavior that executes all registered FluentValidation validators
+/// Mediator pipeline behavior that executes all registered FluentValidation validators
/// before the request is forwarded to its handler. Throws a
/// if any validation failures are found.
///
-/// The type of the MediatR request.
+/// The type of the mediator request.
/// The type of the response.
public class ValidationBehavior : IPipelineBehavior where TRequest : IRequest
{
diff --git a/src/TailoredApps.Shared.MediatR/README.md b/src/TailoredApps.Shared.Mediator/README.md
similarity index 91%
rename from src/TailoredApps.Shared.MediatR/README.md
rename to src/TailoredApps.Shared.Mediator/README.md
index f230cd87..b8f0ebaa 100644
--- a/src/TailoredApps.Shared.MediatR/README.md
+++ b/src/TailoredApps.Shared.Mediator/README.md
@@ -1,19 +1,19 @@
-# TailoredApps.Shared.MediatR
+# TailoredApps.Shared.Mediator
-Five MediatR pipeline behaviours registered in one place: logging, FluentValidation, response caching
+Five mediator pipeline behaviours registered in one place: logging, FluentValidation, response caching
(`HybridCache`), fallback and retry with a circuit breaker. A request opts in to caching, fallback or retry by
having a small policy class next to it; handlers stay free of that code.
## Installation
```bash
-dotnet add package TailoredApps.Shared.MediatR
+dotnet add package TailoredApps.Shared.Mediator
```
## Registration
```csharp
-using TailoredApps.Shared.MediatR.DI;
+using TailoredApps.Shared.Mediator.DI;
builder.Services.AddMediator(cfg => cfg.RegisterServicesFromAssembly(typeof(Program).Assembly));
@@ -31,9 +31,9 @@ policies and fallback handlers, it does not add the behaviours.
## Usage
```csharp
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
public record GetProduct(int Id) : IRequest;
@@ -60,7 +60,7 @@ public class GetProductFallback : IFallbackHandler
## Good to know
-- Built on [ForkForward.Mediator](https://www.nuget.org/packages/ForkForward.Mediator), a fork of MediatR 12.5.0 under the Apache-2.0 licence, not on the MediatR package: requests and handlers use the `ForkForward.Mediator` namespace and the mediator is registered with `AddMediator(...)`. "MediatR" in the name of this library is its history, not its dependency.
+- Built on [ForkForward.Mediator](https://www.nuget.org/packages/ForkForward.Mediator), a fork of MediatR 12.5.0 under the Apache-2.0 licence, not on the MediatR package: requests and handlers use the `ForkForward.Mediator` namespace and the mediator is registered with `AddMediator(...)`. In 2.x this package was named `TailoredApps.Shared.MediatR`.
- Order: Logging -> Validation -> Caching -> Fallback -> Retry -> handler. A cached response skips fallback,
retry and the handler; validation still runs. A response produced by a fallback handler is cached like any other.
- Every response is cached as returned, including `null`, `0` and `false`; a handler that throws caches nothing.
@@ -107,4 +107,4 @@ new PipelineRegistration(builder.Services)
## Documentation
-https://shared.tailoredapps.pl/en/Libraries/MediatR/
+https://shared.tailoredapps.pl/en/Libraries/Mediator/
diff --git a/src/TailoredApps.Shared.MediatR/TailoredApps.Shared.MediatR.csproj b/src/TailoredApps.Shared.Mediator/TailoredApps.Shared.Mediator.csproj
similarity index 58%
rename from src/TailoredApps.Shared.MediatR/TailoredApps.Shared.MediatR.csproj
rename to src/TailoredApps.Shared.Mediator/TailoredApps.Shared.Mediator.csproj
index 05d70163..bf816d5d 100644
--- a/src/TailoredApps.Shared.MediatR/TailoredApps.Shared.MediatR.csproj
+++ b/src/TailoredApps.Shared.Mediator/TailoredApps.Shared.Mediator.csproj
@@ -1,14 +1,14 @@
- TailoredApps.Shared.MediatR
- TailoredApps.Shared.MediatR
+ TailoredApps.Shared.Mediator
+ TailoredApps.Shared.Mediator
- Shared.MediatR
- Shared.MediatR is a popular high-performance MediatR framework for .NET
- Shared.MediatR is a popular high-performance MediatR framework for .NET
- Shared.MediatR
- TailoredApps.Shared.MediatR
+ Shared.Mediator
+ Pipeline behaviours for ForkForward.Mediator registered in one place: logging, FluentValidation, response caching (HybridCache), fallback and retry with a circuit breaker.
+ Pipeline behaviours for ForkForward.Mediator registered in one place: logging, FluentValidation, response caching (HybridCache), fallback and retry with a circuit breaker.
+ Shared.Mediator
+ TailoredApps.Shared.Mediator
Mediator support for .NET
@@ -31,7 +31,7 @@
-
+
diff --git a/src/TailoredApps.Shared.Querying/README.md b/src/TailoredApps.Shared.Querying/README.md
index ebcf8d27..59a50308 100644
--- a/src/TailoredApps.Shared.Querying/README.md
+++ b/src/TailoredApps.Shared.Querying/README.md
@@ -3,7 +3,7 @@
Contracts for list queries: a query with paging, sorting and a filter object, and a result with one page of
items plus the total count. The package has no dependencies, so the same types can be used in an API contract,
in a service and in the data layer. `TailoredApps.Shared.EntityFramework` and
-`TailoredApps.Shared.MediatR.PagedRequest` build on these contracts.
+`TailoredApps.Shared.Mediator.PagedRequest` build on these contracts.
## Installation
@@ -62,7 +62,7 @@ if (query.IsPagingSpecified)
| `IPagedAndSortedQuery`, `IQuery` | The contract of the query and of its filter |
| `IPagingParameters`, `ISortingParameters`, `IQueryParameters` | Read-only views of the paging values, the sorting values, and both |
| `IPagedResult` | `Results` (the page) and `Count` (the total) |
-| `IPagedAndSortedRequest` | Query contract tied to a response type; implemented by `MediatR.PagedRequest` |
+| `IPagedAndSortedRequest` | Query contract tied to a response type; implemented by `Mediator.PagedRequest` |
| `SortDirection` | `Undefined = 0`, `Asc = 1`, `Desc = 2` |
| `QueryMap` | A pair of expressions naming a field of a model and the matching field of an entity |
diff --git a/tests/TailoredApps.Shared.AotSmoke.Caching/Program.cs b/tests/TailoredApps.Shared.AotSmoke.Caching/Program.cs
index 8f52c720..7eee115f 100644
--- a/tests/TailoredApps.Shared.AotSmoke.Caching/Program.cs
+++ b/tests/TailoredApps.Shared.AotSmoke.Caching/Program.cs
@@ -2,11 +2,11 @@
using ForkForward.Mediator;
using Microsoft.Extensions.DependencyInjection;
using TailoredApps.AotSmoke.Caching;
-using TailoredApps.Shared.MediatR.Caching;
-using TailoredApps.Shared.MediatR.DI;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Caching;
+using TailoredApps.Shared.Mediator.DI;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
-// The response cache of the MediatR libraries, natively: a cached object and a cached value, serialized with
+// The response cache of the Mediator libraries, natively: a cached object and a cached value, serialized with
// JSON metadata generated at compile time. See the project file for why this is an application of its own.
var failures = 0;
diff --git a/tests/TailoredApps.Shared.AotSmoke.Caching/TailoredApps.Shared.AotSmoke.Caching.csproj b/tests/TailoredApps.Shared.AotSmoke.Caching/TailoredApps.Shared.AotSmoke.Caching.csproj
index 61366bd8..90cae3fe 100644
--- a/tests/TailoredApps.Shared.AotSmoke.Caching/TailoredApps.Shared.AotSmoke.Caching.csproj
+++ b/tests/TailoredApps.Shared.AotSmoke.Caching/TailoredApps.Shared.AotSmoke.Caching.csproj
@@ -1,7 +1,7 @@
@@ -40,10 +40,10 @@
-
-
-
-
+
+
+
+
diff --git a/tests/TailoredApps.Shared.IntegrationTests/ApplicationTests.cs b/tests/TailoredApps.Shared.IntegrationTests/ApplicationTests.cs
index 83c17794..1e1c02e7 100644
--- a/tests/TailoredApps.Shared.IntegrationTests/ApplicationTests.cs
+++ b/tests/TailoredApps.Shared.IntegrationTests/ApplicationTests.cs
@@ -7,7 +7,7 @@ namespace TailoredApps.Demo.IntegrationTests;
///
/// What the application offers: the registered payment providers and their channels, and the two optional
-/// features (MediatR.ML, Email.Office365), which answer 501 until they are configured.
+/// features (Mediator.ML, Email.Office365), which answer 501 until they are configured.
///
public class ApplicationTests(DemoApplication app) : IClassFixture
{
diff --git a/tests/TailoredApps.Shared.IntegrationTests/CatalogTests.cs b/tests/TailoredApps.Shared.IntegrationTests/CatalogTests.cs
index 0c115901..c677fb16 100644
--- a/tests/TailoredApps.Shared.IntegrationTests/CatalogTests.cs
+++ b/tests/TailoredApps.Shared.IntegrationTests/CatalogTests.cs
@@ -12,8 +12,8 @@
namespace TailoredApps.Demo.IntegrationTests;
///
-/// The product catalogue: Querying, MediatR.PagedRequest and the EntityFramework paging and sorting for the
-/// list; the MediatR pipeline (validation, caching, retry, fallback) and ExceptionHandling for single products.
+/// The product catalogue: Querying, Mediator.PagedRequest and the EntityFramework paging and sorting for the
+/// list; the mediator pipeline (validation, caching, retry, fallback) and ExceptionHandling for single products.
///
public class CatalogTests(DemoApplication app) : IClassFixture
{
diff --git a/tests/TailoredApps.Shared.IntegrationTests/RuntimeAsyncTests.cs b/tests/TailoredApps.Shared.IntegrationTests/RuntimeAsyncTests.cs
index c8777625..34649d6d 100644
--- a/tests/TailoredApps.Shared.IntegrationTests/RuntimeAsyncTests.cs
+++ b/tests/TailoredApps.Shared.IntegrationTests/RuntimeAsyncTests.cs
@@ -29,7 +29,7 @@ public void When_Assemblies_Are_Inspected_Should_Cover_The_Libraries_And_The_Dem
Assert.Contains("TailoredApps.Shared.Demo.Services", assemblies);
Assert.Contains("TailoredApps.Shared.Demo.DataModel", assemblies);
Assert.Contains("TailoredApps.Shared.Payments", assemblies);
- Assert.Contains("TailoredApps.Shared.MediatR", assemblies);
+ Assert.Contains("TailoredApps.Shared.Mediator", assemblies);
Assert.Contains("TailoredApps.Shared.EntityFramework", assemblies);
}
diff --git a/tests/TailoredApps.Shared.IntegrationTests/WebhookTests.cs b/tests/TailoredApps.Shared.IntegrationTests/WebhookTests.cs
index 355872da..88b5dbc4 100644
--- a/tests/TailoredApps.Shared.IntegrationTests/WebhookTests.cs
+++ b/tests/TailoredApps.Shared.IntegrationTests/WebhookTests.cs
@@ -15,7 +15,7 @@ namespace TailoredApps.Demo.IntegrationTests;
///
/// A gateway notification, end to end: the Revolut provider checks the signature, the handler marks the order
/// paid inside the unit of work and publishes OrderPaid; one of its handlers sends the confirmation through
-/// MediatR.Email and the Email template builder.
+/// Mediator.Email and the Email template builder.
///
public class WebhookTests(DemoApplication app) : IClassFixture
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/AddPredictionEngineExtensionTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/AddPredictionEngineExtensionTests.cs
similarity index 91%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/AddPredictionEngineExtensionTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/AddPredictionEngineExtensionTests.cs
index 23330ae7..6cc5ab79 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/AddPredictionEngineExtensionTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/AddPredictionEngineExtensionTests.cs
@@ -1,13 +1,13 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.ML;
using Microsoft.Extensions.Options;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
-using TailoredApps.Shared.MediatR.ML.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ML.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class AddPredictionEngineExtensionTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ClassifyImageCommandHandlerTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ClassifyImageCommandHandlerTests.cs
similarity index 92%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ClassifyImageCommandHandlerTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ClassifyImageCommandHandlerTests.cs
index 724c2af5..3458cd4c 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ClassifyImageCommandHandlerTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ClassifyImageCommandHandlerTests.cs
@@ -2,13 +2,13 @@
using System.Threading;
using System.Threading.Tasks;
using Moq;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ClassifyImageCommandHandlerTests
{
@@ -130,7 +130,7 @@ public async Task When_Image_Exceeds_Configured_Limit_Should_Reject_Before_Calli
// arrange
var limited = new ClassifyImageCommandHandler(
classificationServiceMock.Object,
- Microsoft.Extensions.Options.Options.Create(new TailoredApps.Shared.MediatR.ImageClassification.Infrastructure.ImageClassificationOptions { MaxImageBytes = 8 }));
+ Microsoft.Extensions.Options.Options.Create(new TailoredApps.Shared.Mediator.ImageClassification.Infrastructure.ImageClassificationOptions { MaxImageBytes = 8 }));
var request = new ClassifyImage { FileByteArray = new byte[] { 137, 80, 78, 71, 1, 2, 3, 4, 5, 6 }, FileName = "big.png" };
// act & assert
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ConstructorCompatibilityTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ConstructorCompatibilityTests.cs
similarity index 85%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ConstructorCompatibilityTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ConstructorCompatibilityTests.cs
index 87e61d9b..4975b7e7 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ConstructorCompatibilityTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ConstructorCompatibilityTests.cs
@@ -2,12 +2,12 @@
using System.Threading;
using System.Threading.Tasks;
using Moq;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
///
/// The constructors that shipped before the security hardening must keep working for code that
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/DataModelTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/DataModelTests.cs
similarity index 89%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/DataModelTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/DataModelTests.cs
index 4c00fae2..99022e61 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/DataModelTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/DataModelTests.cs
@@ -2,14 +2,14 @@
using System.Linq;
using ForkForward.Mediator;
using Microsoft.ML.Data;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Responses.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Responses.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ClassifyImageTests
{
@@ -28,7 +28,7 @@ public void Should_Round_Trip_Properties()
}
[Fact]
- public void Should_Be_A_MediatR_Request_For_ClassifyImageResponse()
+ public void Should_Be_A_Mediator_Request_For_ClassifyImageResponse()
{
// arrange & act
var command = new ClassifyImage();
@@ -56,7 +56,7 @@ public void Should_Round_Trip_Properties()
}
[Fact]
- public void Should_Be_A_MediatR_Request_For_TrainImageClassificationModelResponse()
+ public void Should_Be_A_Mediator_Request_For_TrainImageClassificationModelResponse()
{
// arrange & act
var command = new TrainImageClassificationModel();
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/FileUtilsTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/FileUtilsTests.cs
similarity index 96%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/FileUtilsTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/FileUtilsTests.cs
index 4bf1a740..ea8695ba 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/FileUtilsTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/FileUtilsTests.cs
@@ -3,10 +3,10 @@
using System.IO;
using System.Linq;
using System.Reflection;
-using TailoredApps.Shared.MediatR.ML.Infrastructure;
+using TailoredApps.Shared.Mediator.ML.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
///
/// Tests for the internal FileUtils class. The source assembly declares no
@@ -15,7 +15,7 @@ namespace TailoredApps.Shared.MediatR.ML.Tests;
public class FileUtilsTests : IDisposable
{
private static readonly Type FileUtilsType = typeof(PredictionEngineServiceConfiguration).Assembly
- .GetType("TailoredApps.Shared.MediatR.ML.Infrastructure.FileUtils", throwOnError: true);
+ .GetType("TailoredApps.Shared.Mediator.ML.Infrastructure.FileUtils", throwOnError: true);
private readonly string rootFolder;
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationEvaluationTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationEvaluationTests.cs
similarity index 93%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationEvaluationTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationEvaluationTests.cs
index 8de9c80d..4aeed189 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationEvaluationTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationEvaluationTests.cs
@@ -4,12 +4,12 @@
using Microsoft.ML;
using Microsoft.ML.Data;
using Moq;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
///
/// The evaluation half of training. Training itself needs the TensorFlow runtime and a downloaded
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationOptionsTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationOptionsTests.cs
similarity index 95%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationOptionsTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationOptionsTests.cs
index 78befc06..e25ac123 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationOptionsTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationOptionsTests.cs
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using Microsoft.Extensions.Configuration;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ImageClassificationOptionsTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationServiceTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationServiceTests.cs
similarity index 92%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationServiceTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationServiceTests.cs
index fd05f2e0..10d7012e 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageClassificationServiceTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageClassificationServiceTests.cs
@@ -1,11 +1,11 @@
using System;
using Moq;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ImageClassificationServiceTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageValidationExtensionTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageValidationExtensionTests.cs
similarity index 95%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ImageValidationExtensionTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ImageValidationExtensionTests.cs
index 2fe846d4..04332e0e 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ImageValidationExtensionTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ImageValidationExtensionTests.cs
@@ -1,9 +1,9 @@
using System;
using System.IO;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Validation;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Validation;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ImageValidationExtensionTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/MLEngineTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/MLEngineTests.cs
similarity index 81%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/MLEngineTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/MLEngineTests.cs
index 7ad5d296..abdd81ea 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/MLEngineTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/MLEngineTests.cs
@@ -7,13 +7,13 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.ML;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class MLEngineTests
{
@@ -43,7 +43,7 @@ public async Task CanLearnAndVerifyModel()
var mediatoR = hostCreateModel.Services.GetService();
Assert.NotNull(mediatoR);
- var response = await mediatoR.Send(new TrainImageClassificationModel { Source = "D:\\WORK\\SharedComponents\\tests\\TailoredApps.Shared.MediatR.ML.Tests\\TestData\\ImageClassification\\LearningSets", ModelDestFolderPath = modelName });
+ var response = await mediatoR.Send(new TrainImageClassificationModel { Source = "D:\\WORK\\SharedComponents\\tests\\TailoredApps.Shared.Mediator.ML.Tests\\TestData\\ImageClassification\\LearningSets", ModelDestFolderPath = modelName });
Assert.NotNull(response);
var hostVerify = Host.CreateDefaultBuilder()
@@ -66,7 +66,7 @@ public async Task CanLearnAndVerifyModel()
var mediatorVerify = hostVerify.Services.GetService();
Assert.NotNull(mediatorVerify);
- var testFileRed = File.OpenRead("D:\\WORK\\SharedComponents\\tests\\TailoredApps.Shared.MediatR.ML.Tests\\TestData\\ImageClassification\\TestImages\\testred.png");
+ var testFileRed = File.OpenRead("D:\\WORK\\SharedComponents\\tests\\TailoredApps.Shared.Mediator.ML.Tests\\TestData\\ImageClassification\\TestImages\\testred.png");
var responseClassification = await mediatorVerify.Send(new ClassifyImage { FileByteArray = ReadFully(testFileRed), FileName = "testred.png" });
Assert.NotNull(responseClassification);
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ModelHelperTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ModelHelperTests.cs
similarity index 97%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ModelHelperTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ModelHelperTests.cs
index 566c7e47..eeeebb33 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ModelHelperTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ModelHelperTests.cs
@@ -2,10 +2,10 @@
using System.IO;
using System.IO.Compression;
using System.Text.RegularExpressions;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ModelHelperTests : IDisposable
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/ModelInfoServiceTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/ModelInfoServiceTests.cs
similarity index 92%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/ModelInfoServiceTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/ModelInfoServiceTests.cs
index 8155a68a..f88da1e3 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/ModelInfoServiceTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/ModelInfoServiceTests.cs
@@ -1,11 +1,11 @@
using System.IO;
using Microsoft.Extensions.Options;
using Moq;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class ModelInfoServiceTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/PredictionEngineServiceConfigurationTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/PredictionEngineServiceConfigurationTests.cs
similarity index 88%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/PredictionEngineServiceConfigurationTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/PredictionEngineServiceConfigurationTests.cs
index 578eafd3..b16f27eb 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/PredictionEngineServiceConfigurationTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/PredictionEngineServiceConfigurationTests.cs
@@ -1,10 +1,10 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.ML;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Domain.Models;
-using TailoredApps.Shared.MediatR.ML.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Domain.Models;
+using TailoredApps.Shared.Mediator.ML.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class PredictionEngineServiceConfigurationTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TailoredApps.Shared.MediatR.ML.Tests.csproj b/tests/TailoredApps.Shared.Mediator.ML.Tests/TailoredApps.Shared.Mediator.ML.Tests.csproj
similarity index 98%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TailoredApps.Shared.MediatR.ML.Tests.csproj
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TailoredApps.Shared.Mediator.ML.Tests.csproj
index 4da9a4af..abc510ea 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/TailoredApps.Shared.MediatR.ML.Tests.csproj
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/TailoredApps.Shared.Mediator.ML.Tests.csproj
@@ -16,7 +16,7 @@
-
+
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/1.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/1.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/1.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/1.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/2.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/2.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/2.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/2.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/3.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/3.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/3.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/3.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/4.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/4.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/4.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/4.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/5.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/5.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/blue/5.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/blue/5.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/1.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/1.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/1.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/1.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/2.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/2.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/2.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/2.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/3.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/3.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/3.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/3.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/4.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/4.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/4.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/4.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/5.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/5.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/green/5.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/green/5.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/1.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/1.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/1.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/1.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/2.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/2.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/2.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/2.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/3.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/3.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/3.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/3.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/4.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/4.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/4.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/4.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/5.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/5.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/LearningSets/red/5.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/LearningSets/red/5.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/TestImages/testblue.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/TestImages/testblue.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/TestImages/testblue.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/TestImages/testblue.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/TestImages/testgreen.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/TestImages/testgreen.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/TestImages/testgreen.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/TestImages/testgreen.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/TestImages/testred.png b/tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/TestImages/testred.png
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TestData/ImageClassification/TestImages/testred.png
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TestData/ImageClassification/TestImages/testred.png
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/TrainImageClassificationModelCommandHandlerTests.cs b/tests/TailoredApps.Shared.Mediator.ML.Tests/TrainImageClassificationModelCommandHandlerTests.cs
similarity index 95%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/TrainImageClassificationModelCommandHandlerTests.cs
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/TrainImageClassificationModelCommandHandlerTests.cs
index 9ff482f1..7bb2ae3f 100644
--- a/tests/TailoredApps.Shared.MediatR.ML.Tests/TrainImageClassificationModelCommandHandlerTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.ML.Tests/TrainImageClassificationModelCommandHandlerTests.cs
@@ -6,13 +6,13 @@
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
using Moq;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.DataModel.Message.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Domain.Handlers.Commands;
-using TailoredApps.Shared.MediatR.ImageClassification.Infrastructure;
-using TailoredApps.Shared.MediatR.ImageClassification.Interfaces.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.DataModel.Message.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Domain.Handlers.Commands;
+using TailoredApps.Shared.Mediator.ImageClassification.Infrastructure;
+using TailoredApps.Shared.Mediator.ImageClassification.Interfaces.Infrastructure;
using Xunit;
-namespace TailoredApps.Shared.MediatR.ML.Tests;
+namespace TailoredApps.Shared.Mediator.ML.Tests;
public class TrainImageClassificationModelCommandHandlerTests : IDisposable
{
diff --git a/tests/TailoredApps.Shared.MediatR.ML.Tests/appsettings.json b/tests/TailoredApps.Shared.Mediator.ML.Tests/appsettings.json
similarity index 100%
rename from tests/TailoredApps.Shared.MediatR.ML.Tests/appsettings.json
rename to tests/TailoredApps.Shared.Mediator.ML.Tests/appsettings.json
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/Email/SendMailCommandHandlerTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Email/SendMailCommandHandlerTests.cs
similarity index 96%
rename from tests/TailoredApps.Shared.MediatR.Tests/Email/SendMailCommandHandlerTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Email/SendMailCommandHandlerTests.cs
index ab931e88..3f9fe742 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/Email/SendMailCommandHandlerTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Email/SendMailCommandHandlerTests.cs
@@ -5,11 +5,11 @@
using Moq;
using TailoredApps.Shared.Email;
using TailoredApps.Shared.Email.MailMessageBuilder;
-using TailoredApps.Shared.MediatR.Email.Handlers;
-using TailoredApps.Shared.MediatR.Email.Messages.Commands;
+using TailoredApps.Shared.Mediator.Email.Handlers;
+using TailoredApps.Shared.Mediator.Email.Messages.Commands;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class SendMailCommandHandlerTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/CachingBehaviorDistributedTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/CachingBehaviorDistributedTests.cs
similarity index 98%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/CachingBehaviorDistributedTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/CachingBehaviorDistributedTests.cs
index 54a57c9b..3a0eb1f2 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/CachingBehaviorDistributedTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/CachingBehaviorDistributedTests.cs
@@ -11,11 +11,11 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
using Microsoft.Extensions.Options;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
///
/// with a distributed cache behind HybridCache. Each
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/CachingBehaviorTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/CachingBehaviorTests.cs
similarity index 98%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/CachingBehaviorTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/CachingBehaviorTests.cs
index 216daac5..d6bf47e4 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/CachingBehaviorTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/CachingBehaviorTests.cs
@@ -8,11 +8,11 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class CachingBehaviorTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/ExplicitRegistrationTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/ExplicitRegistrationTests.cs
similarity index 96%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/ExplicitRegistrationTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/ExplicitRegistrationTests.cs
index 14baae93..de39af63 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/ExplicitRegistrationTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/ExplicitRegistrationTests.cs
@@ -11,16 +11,16 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
-using TailoredApps.Shared.MediatR.Caching;
-using TailoredApps.Shared.MediatR.DI;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.Interfaces.DI;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.Caching;
+using TailoredApps.Shared.Mediator.DI;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.DI;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
///
/// Registration by name, without scanning: what a trimmed or NativeAOT application uses instead of
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/FallbackBehaviorTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/FallbackBehaviorTests.cs
similarity index 95%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/FallbackBehaviorTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/FallbackBehaviorTests.cs
index cca1e90e..86426662 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/FallbackBehaviorTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/FallbackBehaviorTests.cs
@@ -4,11 +4,11 @@
using ForkForward.Mediator;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class FallbackBehaviorTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/ICachePolicyTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/ICachePolicyTests.cs
similarity index 96%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/ICachePolicyTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/ICachePolicyTests.cs
index 6b5054d4..da36333a 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/ICachePolicyTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/ICachePolicyTests.cs
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using ForkForward.Mediator;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
///
/// Tests the C# default interface implementations of .
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/IRetryableRequestTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/IRetryableRequestTests.cs
similarity index 92%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/IRetryableRequestTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/IRetryableRequestTests.cs
index 81a7cd8a..9ac228e7 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/IRetryableRequestTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/IRetryableRequestTests.cs
@@ -1,7 +1,7 @@
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
///
/// Tests the C# default interface implementations of .
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/LoggingBehaviorTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/LoggingBehaviorTests.cs
similarity index 98%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/LoggingBehaviorTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/LoggingBehaviorTests.cs
index 46e7d8e5..fd46c824 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/LoggingBehaviorTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/LoggingBehaviorTests.cs
@@ -8,10 +8,10 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class LoggingBehaviorTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/PipelineRegistrationTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/PipelineRegistrationTests.cs
similarity index 93%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/PipelineRegistrationTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/PipelineRegistrationTests.cs
index c1e01247..e75d2eb7 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/PipelineRegistrationTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/PipelineRegistrationTests.cs
@@ -6,14 +6,14 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging.Abstractions;
using Moq;
-using TailoredApps.Shared.MediatR.DI;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.DI;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class PipelineRegistrationTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/RetryBehaviorTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/RetryBehaviorTests.cs
similarity index 98%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/RetryBehaviorTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/RetryBehaviorTests.cs
index dd9d2fd5..88060b23 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/RetryBehaviorTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/RetryBehaviorTests.cs
@@ -3,11 +3,11 @@
using System.Threading.Tasks;
using ForkForward.Mediator;
using Microsoft.Extensions.Logging.Abstractions;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class RetryBehaviorTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/ValidationBehaviorTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/ValidationBehaviorTests.cs
similarity index 97%
rename from tests/TailoredApps.Shared.MediatR.Tests/MediatR/ValidationBehaviorTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/Mediator/ValidationBehaviorTests.cs
index 8f393949..d5a25ad0 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/MediatR/ValidationBehaviorTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/Mediator/ValidationBehaviorTests.cs
@@ -3,10 +3,10 @@
using System.Threading.Tasks;
using FluentValidation;
using ForkForward.Mediator;
-using TailoredApps.Shared.MediatR.PipelineBehaviours;
+using TailoredApps.Shared.Mediator.PipelineBehaviours;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class ValidationBehaviorTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/PagedRequest/PagedAndSortedRequestTests.cs b/tests/TailoredApps.Shared.Mediator.Tests/PagedRequest/PagedAndSortedRequestTests.cs
similarity index 96%
rename from tests/TailoredApps.Shared.MediatR.Tests/PagedRequest/PagedAndSortedRequestTests.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/PagedRequest/PagedAndSortedRequestTests.cs
index c0e99bdc..85bcc4c0 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/PagedRequest/PagedAndSortedRequestTests.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/PagedRequest/PagedAndSortedRequestTests.cs
@@ -1,9 +1,9 @@
using System.Collections.Generic;
-using TailoredApps.Shared.MediatR.PagedRequest;
+using TailoredApps.Shared.Mediator.PagedRequest;
using TailoredApps.Shared.Querying;
using Xunit;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
public class PagedAndSortedRequestTests
{
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/TailoredApps.Shared.MediatR.Tests.csproj b/tests/TailoredApps.Shared.Mediator.Tests/TailoredApps.Shared.Mediator.Tests.csproj
similarity index 85%
rename from tests/TailoredApps.Shared.MediatR.Tests/TailoredApps.Shared.MediatR.Tests.csproj
rename to tests/TailoredApps.Shared.Mediator.Tests/TailoredApps.Shared.Mediator.Tests.csproj
index 9a40882e..fa680f46 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/TailoredApps.Shared.MediatR.Tests.csproj
+++ b/tests/TailoredApps.Shared.Mediator.Tests/TailoredApps.Shared.Mediator.Tests.csproj
@@ -18,9 +18,9 @@
-
-
-
+
+
+
diff --git a/tests/TailoredApps.Shared.MediatR.Tests/TestDoubles.cs b/tests/TailoredApps.Shared.Mediator.Tests/TestDoubles.cs
similarity index 76%
rename from tests/TailoredApps.Shared.MediatR.Tests/TestDoubles.cs
rename to tests/TailoredApps.Shared.Mediator.Tests/TestDoubles.cs
index c337edbd..a87c0b53 100644
--- a/tests/TailoredApps.Shared.MediatR.Tests/TestDoubles.cs
+++ b/tests/TailoredApps.Shared.Mediator.Tests/TestDoubles.cs
@@ -1,35 +1,35 @@
using System.Threading;
using System.Threading.Tasks;
using ForkForward.Mediator;
-using TailoredApps.Shared.MediatR.Interfaces.Caching;
-using TailoredApps.Shared.MediatR.Interfaces.Handlers;
-using TailoredApps.Shared.MediatR.Interfaces.Messages;
+using TailoredApps.Shared.Mediator.Interfaces.Caching;
+using TailoredApps.Shared.Mediator.Interfaces.Handlers;
+using TailoredApps.Shared.Mediator.Interfaces.Messages;
-namespace TailoredApps.Shared.MediatR.Tests;
+namespace TailoredApps.Shared.Mediator.Tests;
-/// Shared MediatR request used by caching pipeline tests.
+/// Shared mediator request used by caching pipeline tests.
public class CachedRequest : IRequest
{
public int Id { get; set; }
}
-/// Shared MediatR request used by retry pipeline tests.
+/// Shared mediator request used by retry pipeline tests.
public class RetryRequest : IRequest
{
}
-/// Shared MediatR request used by fallback pipeline tests.
+/// Shared mediator request used by fallback pipeline tests.
public class FallbackRequest : IRequest
{
}
-/// Shared MediatR request used by logging pipeline tests.
+/// Shared mediator request used by logging pipeline tests.
public class LoggingRequest : IRequest
{
public string Payload { get; set; }
}
-/// Shared MediatR request used by validation pipeline tests.
+/// Shared mediator request used by validation pipeline tests.
public class ValidatedRequest : IRequest
{
public string Name { get; set; }