-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDependencies.cs
More file actions
26 lines (23 loc) · 1.35 KB
/
Dependencies.cs
File metadata and controls
26 lines (23 loc) · 1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using Microsoft.Extensions.DependencyInjection;
using SEBT.Portal.Core.Models.Household;
using SEBT.Portal.Kernel;
using SEBT.Portal.UseCases.Auth;
using SEBT.Portal.UseCases.Household;
using SEBT.Portal.UseCases.IdProofing;
namespace SEBT.Portal.UseCases;
public static class Dependencies
{
public static IServiceCollection AddUseCases(this IServiceCollection services)
{
services.RegisterCommandHandler<RequestOtpCommand, RequestOtpCommandHandler>();
services.RegisterCommandHandler<ValidateOtpCommand, string, ValidateOtpCommandHandler>();
services.RegisterCommandHandler<RefreshTokenCommand, string, RefreshTokenCommandHandler>();
services.RegisterQueryHandler<GetHouseholdDataQuery, HouseholdData, GetHouseholdDataQueryHandler>();
services.RegisterCommandHandler<SubmitIdProofingCommand, SubmitIdProofingResponse, SubmitIdProofingCommandHandler>();
services.RegisterCommandHandler<StartChallengeCommand, StartChallengeResponse, StartChallengeCommandHandler>();
services.RegisterQueryHandler<GetVerificationStatusQuery, VerificationStatusResponse, GetVerificationStatusQueryHandler>();
services.RegisterCommandHandler<ProcessWebhookCommand, ProcessWebhookCommandHandler>();
services.RegisterCommandHandler<UpdateAddressCommand, UpdateAddressCommandHandler>();
return services;
}
}