public AuthenticationService(IProfileRepo profileRepo, IHashedAdapter hashedAdapter, IOtpService otpService, INotifyAdapter notifyAdapter) { _profileRepo = profileRepo; _hashedAdapter = hashedAdapter; _otpService = otpService; _notifyAdapter = notifyAdapter; }
public OtpController(IMashhadSmsService mashhadSmsService, IOtpService otpService, IKavenegar kavenegar, IOtpHandler otpHandler) { _mashhadSmsService = mashhadSmsService; _otpService = otpService; _kavenegar = kavenegar; _otpHandler = otpHandler; }
public AuthenticationService(IProfile profile, IHash hash, IOtpService otpService) { _profile = profile; _hash = hash; _otpService = otpService; }
public AuthenticationService() { _profile = new ProfileDao(); _hash = new Sha256Adapter(); _otpService = new OtpService(); _notification = new SlackAdapter(); _failedCounter = new FailedCounter(); _logger = new NLogAdapter(); }
public AuthenticationService(IProfile profile, IHash hash, IOtpService otpService, INotification notification, IFailedCounter failedCounter, ILogger logger) { _profile = profile; _hash = hash; _otpService = otpService; _notification = notification; _failedCounter = failedCounter; _logger = logger; }
public LoginOtp(ApplicationUserManager userManager, ILogger logger, IOtpService otpService , IIdentityServerInteractionService identityServerInteractionService, ISmsService smsService) { _userManager = userManager; _logger = logger; _otpService = otpService; _identityServerInteractionService = identityServerInteractionService; _smsService = smsService; }
public OtpValidateApi( IOtpService otpService, IValidationUserService validation, ILogger <OtpValidateApi> logger) { _otpService = otpService; _validation = validation; _logger = logger; }
public AuthenticationService(IProfileDao profileDao, IFailedCounter failedCounter, ISlackAdapter slackAdapter, ISha256Adapter sha256Adapter, IOtpService otpService, ILogger logger) { _profileDao = profileDao; _failedCounter = failedCounter; _slackAdapter = slackAdapter; _sha256Adapter = sha256Adapter; _otpService = otpService; _logger = logger; }
public void Setup() { _profile = Substitute.For <IProfile>(); _hash = Substitute.For <IHash>(); _otpService = Substitute.For <IOtpService>(); _notification = Substitute.For <INotification>(); _failedCounter = Substitute.For <IFailedCounter>(); _logger = Substitute.For <ILogger>(); _authenticationService = new AuthenticationService(_profile, _hash, _otpService, _notification, _failedCounter, _logger); }
public OtpHandler(IOtpService otpService, IUserRepository userRepository, UserManager <Entities.User.User> userManager, IOptionsSnapshot <SiteSettings> settings, ILogger <LoginHandler> logger, IJwtService jwtService, ITokenFactory tokenFactory) { _otpService = otpService; _userRepository = userRepository; _logger = logger; _jwtService = jwtService; _userManager = userManager; _tokenFactory = tokenFactory; _siteSetting = settings.Value; }
public WalletService(ICustodianBroker custodianBroker, IConnectionService connectionService, IAgencyBroker agencyBroker, IConfiguration configuration, IOtpService otpService, IWalletRepository walletRepository, ICredentialService credentialService) { _custodianBroker = custodianBroker; _connectionService = connectionService; _agencyBroker = agencyBroker; _configuration = configuration; _credentialService = credentialService; _otpService = otpService; _walletRepository = walletRepository; }
public AuthController( IAuthService authService, IApplicationService appService, IMapper mapper, IOtpService otpService, IOptions <AppSettings> appSettings) { _authService = authService; _appService = appService; _mapper = mapper; _appSettings = appSettings.Value; _otpService = otpService; }
public void SetUp() { _notification = Substitute.For <INotification>(); _logger = Substitute.For <ILogger>(); _failedCounter = Substitute.For <IFailedCounter>(); _otpService = Substitute.For <IOtpService>(); _hash = Substitute.For <IHash>(); _profile = Substitute.For <IProfile>(); _authentication = new AuthenticationService(_profile, _hash, _otpService); _authentication = new NotificationDecorator(_authentication, _notification); _authentication = new FailedCounterDecorator(_authentication, _failedCounter); _authentication = new LogFailedCountDecorator(_authentication, _failedCounter, _logger); }
public void SetUp() { _logger = Substitute.For <ILogger>(); _notifier = Substitute.For <INotifier>(); _profile = Substitute.For <IProfile>(); _failCounter = Substitute.For <IFailCounter>(); _otpService = Substitute.For <IOtpService>(); _hash = Substitute.For <IHash>(); var authenticationService = new AuthenticationService(_otpService, _hash, _profile); var failCounterDecorator = new FailCounterDecorator(authenticationService, _failCounter, _logger); _authentication = new NotifyDecorator(failCounterDecorator, _notifier); }
public WalletService(IOtpService otpService, IWalletRepository walletRepository, IWalletDetailRepository walletDetailRepository, ITestResultService testResultService, ITokenService tokenService, ICryptoService cryptoService, IAmazonS3Broker amazonS3Broker, ISessionService sessionService, IWalletDetailService walletDetailService) { _walletDetailRepository = walletDetailRepository; _testResultService = testResultService; _tokenService = tokenService; _cryptoService = cryptoService; _amazonS3Broker = amazonS3Broker; _sessionService = sessionService; _walletDetailService = walletDetailService; _otpService = otpService; _walletRepository = walletRepository; }
public void SetUp() { _Logger = Substitute.For <ILogger>(); _FailedCounter = Substitute.For <IFailCounter>(); _Notification = Substitute.For <INotification>(); _OtpService = Substitute.For <IOtpService>(); _Hash = Substitute.For <IHashAdapter>(); _Profile = Substitute.For <IProfile>(); _AuthenticationService = new AuthenticationService(_Profile, _Hash, _OtpService); _AuthenticationService = new FailCounterDecorator(_AuthenticationService, _FailedCounter); _AuthenticationService = new LogFailCountDecorator(_AuthenticationService, _Logger, _FailedCounter); _AuthenticationService = new NotificationDecorator(_AuthenticationService, _Notification); }
public Login( ApplicationUserManager userManager, ILogger logger, IOtpService otpService, IIdentityServerInteractionService interactionService, IEventService eventService, ApplicationSigninManager signinManager) { _userManager = userManager; _logger = logger; _otpService = otpService; _interactionService = interactionService; _eventService = eventService; _signinManager = signinManager; }
public void Setup() { _profileRepo = Substitute.For <IProfileRepo>(); _hashedAdapter = Substitute.For <IHashedAdapter>(); _otpService = Substitute.For <IOtpService>(); _logAdapter = Substitute.For <ILogAdapter>(); _notifyAdapter = Substitute.For <INotifyAdapter>(); _failedCounter = Substitute.For <IFailedCounter>(); _authenticationService = new AuthenticationService(_profileRepo, _hashedAdapter, _otpService, _notifyAdapter); var failedCounterDecorator = new FailedCounterDecorator(_authenticationService, _failedCounter); var logDecorator = new LogDecorator(failedCounterDecorator, _logAdapter, _failedCounter); _authenticationService = logDecorator; }
public LoginPage() { using (var scope = AppContainer.Container.BeginLifetimeScope()) { _optService = AppContainer.Container.Resolve <IOtpService>(); _notifier = AppContainer.Container.Resolve <INotifier>(); } // Build the page. Title = "Login"; Content = new StackLayout { Children = { BuilContentChildren() } }; }
public void SetUp() { _profile = Substitute.For <IProfile>(); _hash = Substitute.For <IHash>(); _otpService = Substitute.For <IOtpService>(); _failedCounter = Substitute.For <IFailedCounter>(); _notification = Substitute.For <INotification>(); _logger = Substitute.For <ILogger>(); //先初始化一個最基本的Service var authentication = new AuthenticationService(_profile, _hash, _otpService); //然後裝飾他,越後面越先執行 var notificationDecorator = new NotificationDecorator(authentication, _notification); var failedCounterDecorator = new FailedCounterDecorator(notificationDecorator, _failedCounter); _authentication = new LogFailedCountDecorator(failedCounterDecorator, _failedCounter, _logger); }
public void SetUp() { _profile = Substitute.For <IProfile>(); _hash = Substitute.For <IHash>(); _otpService = Substitute.For <IOtpService>(); _failedCounter = Substitute.For <IFailedCounter>(); _notification = Substitute.For <INotification>(); _logger = Substitute.For <ILogger>(); // 主體 var authenticationService = new AuthenticationService( _profile, _hash, _otpService); // 主體(_authentication)以界面作接口 // authenticationService 配上 Notification => notificationDecorator var notificationDecorator = new NotificationDecorator(authenticationService, _notification); // notificationDecorator 配上 FailedCounterDecorator => failedCounterDecorator var failedCounterDecorator = new FailedCounterDecorator(notificationDecorator, _failedCounter); // failedCounterDecorator 配上 LogFaileCounterDecorator => _authentication _authentication = new LogFaileCounterDecorator(failedCounterDecorator, _failedCounter, _logger); }
public OtpController(IOtpService otpService) { _otpService = otpService; }
public AuthenticationService(IProfile profile, IHashAdapter hash, IOtpService otpService) { _Profile = profile; _Hash = hash; _OtpService = otpService; }
public AuthenticationService() { _profile = new ProfileDao(); _hash = new Sha256Adapter(); _otpService = new OtpService(); }
public AuthenticationService(IOtpService service, IUserRepo repo) { _otpService = service; _userRepo = repo; }
public OtpSendApi(IOtpService otpService, ILogger <OtpSendApi> logger) { _otpService = otpService; _logger = logger; }
public OtpValidateApi(IOtpService otpService, ILogger <OtpValidateApi> logger) { _otpService = otpService; _logger = logger; }
public CCompanyService(ICCompanyDal cCompanyDal, IOtpService otpService) { _cCompanyDal = cCompanyDal; _otpService = otpService; }
public AuthenticationController(IOtpService otpService) { _otpService = otpService; }
public BCompanyService(IBCompanyDal bCompanyDal, IOtpService otpService) { _bCompanyDal = bCompanyDal; _otpService = otpService; }