diff --git a/src/Altinn.Profile.Integrations/ServiceCollectionExtensions.cs b/src/Altinn.Profile.Integrations/ServiceCollectionExtensions.cs index 6895669..7acbfb4 100644 --- a/src/Altinn.Profile.Integrations/ServiceCollectionExtensions.cs +++ b/src/Altinn.Profile.Integrations/ServiceCollectionExtensions.cs @@ -58,7 +58,7 @@ public static void AddRegisterService(this IServiceCollection services, IConfigu services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies()); - services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddSingleton(); diff --git a/src/Altinn.Profile.Integrations/Services/IRegisterService.cs b/src/Altinn.Profile.Integrations/Services/IPersonService.cs similarity index 97% rename from src/Altinn.Profile.Integrations/Services/IRegisterService.cs rename to src/Altinn.Profile.Integrations/Services/IPersonService.cs index 57c971c..e09b42b 100644 --- a/src/Altinn.Profile.Integrations/Services/IRegisterService.cs +++ b/src/Altinn.Profile.Integrations/Services/IPersonService.cs @@ -8,7 +8,7 @@ namespace Altinn.Profile.Integrations.Services; /// /// Defines a service for handling operations related to user contact information. /// -public interface IRegisterService +public interface IPersonService { /// /// Asynchronously retrieves the contact information for a user based on their national identity number. diff --git a/src/Altinn.Profile.Integrations/Services/RegisterService.cs b/src/Altinn.Profile.Integrations/Services/PersonService.cs similarity index 93% rename from src/Altinn.Profile.Integrations/Services/RegisterService.cs rename to src/Altinn.Profile.Integrations/Services/PersonService.cs index 71f9405..1c4e9fb 100644 --- a/src/Altinn.Profile.Integrations/Services/RegisterService.cs +++ b/src/Altinn.Profile.Integrations/Services/PersonService.cs @@ -11,20 +11,20 @@ namespace Altinn.Profile.Integrations.Services; /// /// Service for handling operations related to user registration and contact points. /// -public class RegisterService : IRegisterService +public class PersonService : IPersonService { private readonly IMapper _mapper; private readonly IPersonRepository _registerRepository; private readonly INationalIdentityNumberChecker _nationalIdentityNumberChecker; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// The mapper used for object mapping. /// The repository used for accessing register data. /// The service used for checking the validity of national identity numbers. /// Thrown if , , or is null. - public RegisterService(IMapper mapper, IPersonRepository registerRepository, INationalIdentityNumberChecker nationalIdentityNumberChecker) + public PersonService(IMapper mapper, IPersonRepository registerRepository, INationalIdentityNumberChecker nationalIdentityNumberChecker) { _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _registerRepository = registerRepository ?? throw new ArgumentNullException(nameof(registerRepository)); diff --git a/src/Altinn.Profile/UseCases/UserContactDetailsRetriever.cs b/src/Altinn.Profile/UseCases/UserContactDetailsRetriever.cs index fd02b92..0cf2589 100644 --- a/src/Altinn.Profile/UseCases/UserContactDetailsRetriever.cs +++ b/src/Altinn.Profile/UseCases/UserContactDetailsRetriever.cs @@ -15,14 +15,14 @@ namespace Altinn.Profile.UseCases; /// public class UserContactDetailsRetriever : IUserContactDetailsRetriever { - private readonly IRegisterService _registerService; + private readonly IPersonService _registerService; /// /// Initializes a new instance of the class. /// /// The register service for retrieving user contact details. /// Thrown when is null. - public UserContactDetailsRetriever(IRegisterService registerService) + public UserContactDetailsRetriever(IPersonService registerService) { _registerService = registerService ?? throw new ArgumentNullException(nameof(registerService)); }