mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 03:43:11 +00:00
test(team-members): register reset email delivery in the invite test host
This commit is contained in:
parent
35e79a276d
commit
2f23f6fadc
1 changed files with 4 additions and 0 deletions
|
|
@ -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<IEmailSender>(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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue