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(); }