public UserProfileAuthenticatorDataRepository(IDataProtectionProvider dataProtectionProvider, IEnrollmentClient enrollmentService, ILoggerFactory loggerFactory)
        {
            if (dataProtectionProvider == null) throw new ArgumentNullException(nameof(dataProtectionProvider));
            if (enrollmentService == null) throw new ArgumentNullException(nameof(enrollmentService));
            if (loggerFactory == null) throw new ArgumentNullException(nameof(loggerFactory));

            _dataProtector = dataProtectionProvider.CreateProtector(GetType().FullName);
            _enrollmentservice = enrollmentService;
            _logger = loggerFactory.CreateLogger<UserProfileAuthenticatorDataRepository>();
        }
        public AuthenticatorController(IAuthenticatorDataRepository repository, IAuthenticator authenticator, IEnrollmentClient enrollClient)
        {
            if (repository == null) throw new ArgumentNullException(nameof(repository));
            if (authenticator == null) throw new ArgumentNullException(nameof(authenticator));
            if (enrollClient == null) throw new ArgumentNullException(nameof(enrollClient));

            _repository = repository;
            _authenticator = authenticator;
            _enrolClient = enrollClient;
        }