From 2f23f6fadca25540e65c5995768c324962b0f2b6 Mon Sep 17 00:00:00 2001 From: Alexandre Brandizzi Date: Fri, 25 Sep 2026 18:10:10 -0300 Subject: [PATCH] test(team-members): register reset email delivery in the invite test host --- SeaHavenIndustries.Tests/TeamMemberInviteTestHost.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SeaHavenIndustries.Tests/TeamMemberInviteTestHost.cs b/SeaHavenIndustries.Tests/TeamMemberInviteTestHost.cs index a2e5a1a..82ec3e7 100644 --- a/SeaHavenIndustries.Tests/TeamMemberInviteTestHost.cs +++ b/SeaHavenIndustries.Tests/TeamMemberInviteTestHost.cs @@ -1,6 +1,7 @@ using System.Collections.Concurrent; using System.Security.Claims; using System.Text.RegularExpressions; +using Api.SeaHavenIndustries.HostedServices; using Api.SeaHavenIndustries.Infrastructure; using Data.SeaHavenIndustries; using Microsoft.Data.Sqlite; @@ -79,6 +80,9 @@ internal sealed class TeamMemberInviteTestHost : IAsyncDisposable services.AddSingleton(fakes.Sent); services.AddDataServices(); services.AddBusinessServices(configuration); + // Registration signs the member in through the authentication service, which + // queues password reset email; the API host registers the same delivery. + services.AddPasswordResetEmailDelivery(); configure?.Invoke(services); return services.BuildServiceProvider(); }