using System; using Kreta.Core.KIR.Domain.Model; using Kreta.Core.KIR.Factory.Interface; using Kreta.Core.KIR.Service.Interface; namespace Kreta.BusinessLogic.Helpers { public class KirAuthenticationHelper { private IAuthenticationService AuthenticationService { get; } public KirAuthenticationHelper(IAuthenticationServiceFactory authenticationServiceFactory) { if (authenticationServiceFactory == null) { throw new ArgumentNullException(nameof(authenticationServiceFactory)); } AuthenticationService = authenticationServiceFactory.GetAuthenticationService(); } public AuthHeaderModel Authenticate(AuthHeaderModel authHeaderModel) => AuthenticationService.Authenticate(authHeaderModel); } }