feat: Add functional tests for OrderService and update InventoryService command and idempotency logic.

This commit is contained in:
Ho Ngoc Hai
2026-01-18 00:19:46 +07:00
parent 844e40f818
commit 811ddd1e19
384 changed files with 6939 additions and 2793 deletions

View File

@@ -1,8 +1,8 @@
using Asp.Versioning;
using FluentValidation;
using Hellang.Middleware.ProblemDetails;
using MyService.API.Application.Behaviors;
using MyService.Infrastructure;
using FnbEngine.API.Application.Behaviors;
using FnbEngine.Infrastructure;
using Serilog;
// EN: Configure Serilog early / VI: Cấu hình Serilog sớm
@@ -12,7 +12,7 @@ Log.Logger = new LoggerConfiguration()
try
{
Log.Information("Starting MyService API / Khởi động MyService API");
Log.Information("Starting FnbEngine API / Khởi động FnbEngine API");
var builder = WebApplication.CreateBuilder(args);
@@ -70,9 +70,9 @@ try
{
options.SwaggerDoc("v1", new()
{
Title = "MyService API",
Title = "FnbEngine API",
Version = "v1",
Description = "MyService microservice API / API microservice MyService"
Description = "FnbEngine microservice API / API microservice FnbEngine"
});
});
@@ -107,7 +107,7 @@ try
app.UseSwagger();
app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/swagger/v1/swagger.json", "MyService API v1");
c.SwaggerEndpoint("/swagger/v1/swagger.json", "FnbEngine API v1");
c.RoutePrefix = "swagger";
});
}