Пример #1
0
 public AccountService(IPasswordProtectionService passwordProtectionService, ICustomerRepository customerRepository, IAccountRepository accountRepository, IPasswordResetRepository passwordResetRepository)
 {
     _passwordProtectionService = passwordProtectionService;
     _customerRepository        = customerRepository;
     _accountRepository         = accountRepository;
     _passwordResetRepository   = passwordResetRepository;
 }
Пример #2
0
 public AccountController(IOtpProxy otpProxy,
                          ISmsSender smsSender, IEmailSender emailSender,
                          IAccountProxy accountProxy, IClientProxy clientProxy,
                          IPasswordProtectionService protectionService)
 {
     _otpProxy          = otpProxy;
     _smsSender         = smsSender;
     _emailSender       = emailSender;
     _accountProxy      = accountProxy;
     _clientProxy       = clientProxy;
     _protectionService = protectionService;
 }
Пример #3
0
 public LoginViewModel(IRegionManager regionManager, IPasswordProtectionService passwordProtectionService, IEventAggregator eventAggregator, INetworkConnectionController networkConnectionController, ICurrentUser currentUser, IOverlayService overlayService)
 {
     _regionManager               = regionManager;
     _passwordProtectionService   = passwordProtectionService;
     _eventAggregator             = eventAggregator;
     _networkConnectionController = networkConnectionController;
     _currentUser           = currentUser;
     _overlayService        = overlayService;
     PasswordChangedCommand = new DelegateCommand <object>(PasswordChanged);
     LoginCommand           = new DelegateCommand(Login);
     RegisterCommand        = new DelegateCommand(Register);
 }
Пример #4
0
 public RegisterViewModel(IFileProcessorService fileProcessorService, IRegionManager regionManager, IPasswordProtectionService passwordProtectionService, IOverlayService overlayService)
 {
     _fileProcessorService      = fileProcessorService;
     _regionManager             = regionManager;
     _passwordProtectionService = passwordProtectionService;
     _overlayService            = overlayService;
     SelectImageCommand         = new DelegateCommand(SelectImage);
     PasswordChangedCommand     = new DelegateCommand <object>(PasswordChanged);
     RePasswordChangedCommand   = new DelegateCommand <object>(RePasswordChanged);
     LoginCommand    = new DelegateCommand(() => _regionManager.RequestNavigate(RegionNames.MainRegion, nameof(LoginView)));
     RegisterCommand = new DelegateCommand(Register);
     User            = new SocketUser();
 }
Пример #5
0
 public AuthenticationService(IPasswordProtectionService passwordProtectionService, IUnitOfWorkFactory unitOfWorkFactory)
 {
     _unitOfWorkFactory         = unitOfWorkFactory;
     _passwordProtectionService = passwordProtectionService;
 }