Beispiel #1
0
        private IPublicHashingService GetPublicHashingService(IContext context)
        {
            var config = context.GetInstance <EmployerAccountsConfiguration>();
            var publicHashingService = new PublicHashingService(config.PublicAllowedHashstringCharacters, config.PublicHashstring);

            return(publicHashingService);
        }
Beispiel #2
0
        private IAccountLegalEntityPublicHashingService GetAccountLegalEntityPublicHashingService(IContext context)
        {
            var config = context.GetInstance <EmployerAccountsConfiguration>();
            var accountLegalEntityPublicHashingService = new PublicHashingService(config.PublicAllowedAccountLegalEntityHashstringCharacters, config.PublicAllowedAccountLegalEntityHashstringSalt);

            return(accountLegalEntityPublicHashingService);
        }
Beispiel #3
0
        public SendTransferConnectionInvitationHandlerTestsFixture AddAccount(Account account)
        {
            EmployerAccountRepository.Setup(r => r.GetAccountById(account.Id)).ReturnsAsync(account);
            PublicHashingService.Setup(h => h.DecodeValue(account.PublicHashedId)).Returns(account.Id);

            return(this);
        }