diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml
index 0337729..1f11fda 100644
--- a/.forgejo/workflows/ci.yml
+++ b/.forgejo/workflows/ci.yml
@@ -54,6 +54,7 @@ jobs:
trivy-enabled: 'true'
trivy-image: eltruncho/heimdall
dependency-check-enabled: 'true'
+ dependency-check-path: Heimdall.slnx
docker-images: |
eltruncho/heimdall docker/Dockerfile
eltruncho/heimdall-agent docker/Dockerfile.agent
diff --git a/ci-rerun-marker.txt b/ci-rerun-marker.txt
new file mode 100644
index 0000000..11b947d
--- /dev/null
+++ b/ci-rerun-marker.txt
@@ -0,0 +1,2 @@
+re-run post infra fix — 20260814T165358Z
+re-run post serialisation tests DB template — 20260815T025200Z
diff --git a/src/Heimdall.Application/DependencyInjection.cs b/src/Heimdall.Application/DependencyInjection.cs
index c8a956c..648bdba 100644
--- a/src/Heimdall.Application/DependencyInjection.cs
+++ b/src/Heimdall.Application/DependencyInjection.cs
@@ -23,7 +23,8 @@ public static class DependencyInjection
});
// AutoMapper — scan assembly for profiles (including MappingProfile)
- services.AddAutoMapper(assembly);
+ // (v16 : AddAutoMapper n'accepte plus Assembly en 2e arg — AddMaps requis)
+ services.AddAutoMapper(cfg => cfg.AddMaps(assembly));
// FluentValidation — auto-register all validators
services.AddValidatorsFromAssembly(assembly);
diff --git a/src/Heimdall.Application/Heimdall.Application.csproj b/src/Heimdall.Application/Heimdall.Application.csproj
index ba8dbf4..13c020c 100644
--- a/src/Heimdall.Application/Heimdall.Application.csproj
+++ b/src/Heimdall.Application/Heimdall.Application.csproj
@@ -5,7 +5,7 @@
-
+
diff --git a/src/Heimdall.Web/Heimdall.Web.csproj b/src/Heimdall.Web/Heimdall.Web.csproj
index 8409db7..6a5b3bd 100644
--- a/src/Heimdall.Web/Heimdall.Web.csproj
+++ b/src/Heimdall.Web/Heimdall.Web.csproj
@@ -22,10 +22,13 @@
-
+
+
+
+
diff --git a/tests/Heimdall.Application.Tests/Handlers/Notifications/NotificationHandlerTests.cs b/tests/Heimdall.Application.Tests/Handlers/Notifications/NotificationHandlerTests.cs
index ed8e0cd..3d3a28e 100644
--- a/tests/Heimdall.Application.Tests/Handlers/Notifications/NotificationHandlerTests.cs
+++ b/tests/Heimdall.Application.Tests/Handlers/Notifications/NotificationHandlerTests.cs
@@ -11,6 +11,7 @@ using Heimdall.Application.Notifications.Queries.GetUnreadCount;
using Heimdall.Application.Tests.Common;
using Heimdall.Domain.Entities;
using Heimdall.Domain.Enums;
+using Microsoft.Extensions.Logging.Abstractions;
using NSubstitute;
namespace Heimdall.Application.Tests.Handlers.Notifications;
@@ -18,7 +19,7 @@ namespace Heimdall.Application.Tests.Handlers.Notifications;
public class NotificationHandlerTests
{
private static readonly IMapper Mapper = new MapperConfiguration(cfg =>
- cfg.AddProfile(new NotificationMappingProfile())).CreateMapper();
+ cfg.AddProfile(new NotificationMappingProfile()), NullLoggerFactory.Instance).CreateMapper();
private readonly IApplicationDbContext _context;
private readonly CancellationToken _ct = CancellationToken.None;
diff --git a/tests/Heimdall.Application.Tests/Mappings/MappingProfileTests.cs b/tests/Heimdall.Application.Tests/Mappings/MappingProfileTests.cs
index 806c397..4248e08 100644
--- a/tests/Heimdall.Application.Tests/Mappings/MappingProfileTests.cs
+++ b/tests/Heimdall.Application.Tests/Mappings/MappingProfileTests.cs
@@ -1,6 +1,7 @@
using AutoMapper;
using Heimdall.Application.DTOs;
using Heimdall.Domain.Entities;
+using Microsoft.Extensions.Logging.Abstractions;
namespace Heimdall.Application.Tests.Mappings;
@@ -11,7 +12,7 @@ public class MappingProfileTests
var config = new MapperConfiguration(cfg =>
{
cfg.AddMaps(typeof(Heimdall.Application.DependencyInjection).Assembly);
- });
+ }, NullLoggerFactory.Instance);
return config.CreateMapper();
}
diff --git a/tests/Heimdall.Infrastructure.Tests/Services/NotificationServiceTests.cs b/tests/Heimdall.Infrastructure.Tests/Services/NotificationServiceTests.cs
index dabf189..e2ce0b1 100644
--- a/tests/Heimdall.Infrastructure.Tests/Services/NotificationServiceTests.cs
+++ b/tests/Heimdall.Infrastructure.Tests/Services/NotificationServiceTests.cs
@@ -11,6 +11,7 @@ using Heimdall.Infrastructure.Services;
using Microsoft.Data.Sqlite;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.Logging.Abstractions;
using NSubstitute;
using Shouldly;
@@ -45,8 +46,9 @@ public class NotificationServiceTests : IDisposable
_context.Database.EnsureCreated();
// Real AutoMapper with the actual notification mapping profile
+ // (v16 : constructeur 2 args — ILoggerFactory requis)
var mapperConfig = new MapperConfiguration(cfg =>
- cfg.AddProfile());
+ cfg.AddProfile(), NullLoggerFactory.Instance);
_mapper = mapperConfig.CreateMapper();
_broadcast = Substitute.For();