Ejemplo n.º 1
0
        public SkautIsUserService(
            IMembershipService membershipService,
            IAuthenticationService authenticationService,
            IPasswordGeneratorService passwordGeneratorService,
            IWorkContextAccessor workContextAccessor,
            IContentManager contentManager,
            IUsernameService usernameService)
        {
            this.membershipService        = membershipService;
            this.authenticationService    = authenticationService;
            this.passwordGeneratorService = passwordGeneratorService;
            this.contentManager           = contentManager;
            this.usernameService          = usernameService;

            this.coreSettings = new Lazy <SkautSisCoreSettingsPart>(
                () => workContextAccessor.GetContext().CurrentSite.As <SkautSisCoreSettingsPart>());

            this.userManagementClient = new Lazy <UserManagementSoapClient>(
                () => new UserManagementSoapClient(
                    this.coreSettings.Value.SkautIsWsSoapBinding,
                    this.coreSettings.Value.SkautIsUserManagementServiceAddress));

            this.organizationUnitClient = new Lazy <OrganizationUnitSoapClient>(
                () => new OrganizationUnitSoapClient(
                    this.coreSettings.Value.SkautIsWsSoapBinding,
                    this.coreSettings.Value.SkautIsOrganizationUnitServiceAddress));

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Ejemplo n.º 2
0
        public RegistrationPresenter(
            IRegisterView view,
            IRegistrationService registrationService,
            ISubjectManagementService subjectManagementService,
            IClassOfStudentsManagementService classOfStudentsManagementService,
            IAccountManagementService accountManagementSerivce,
            IEmailSenderService emailSender,
            IPasswordGeneratorService passwordService)
            : base(view)
        {
            Guard.WhenArgument(registrationService, "registrationService").IsNull().Throw();
            Guard.WhenArgument(subjectManagementService, "subjectManagementService").IsNull().Throw();
            Guard.WhenArgument(classOfStudentsManagementService, "classOfStudentsManagementService").IsNull().Throw();
            Guard.WhenArgument(accountManagementSerivce, "accountManagementService").IsNull().Throw();
            Guard.WhenArgument(emailSender, "emailSender").IsNull().Throw();
            Guard.WhenArgument(passwordService, "passwordService").IsNull().Throw();

            this.registrationService              = registrationService;
            this.accountManagementSerivce         = accountManagementSerivce;
            this.subjectManagementService         = subjectManagementService;
            this.classOfStudentsManagementService = classOfStudentsManagementService;
            this.emailSender     = emailSender;
            this.passwordService = passwordService;

            this.View.EventRegisterUser         += this.RegisterUser;
            this.View.EventGetClassesOfStudents += this.View_EventGetClassesOfStudents;
            this.View.EventGetUserRoles         += this.View_EventGetUserRoles;
            this.View.EventGetAvailableSubjects += this.View_EventGetAvailableSubjects;
        }
Ejemplo n.º 3
0
 public AnchorService(ICodeGeneratorService codeGeneratorService, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IPasswordGeneratorService codeGenerator, IAnchorRepository anchorRepository, IBaseEntityRepository <Anchor> baseEntityRepository) : base(baseEntityRepository)
 {
     _userManager          = userManager;
     _roleManager          = roleManager;
     _anchorRepository     = anchorRepository;
     _baseEntityRepository = baseEntityRepository;
     _codeGenerator        = codeGenerator;
     _codeGeneratorService = codeGeneratorService;
 }
Ejemplo n.º 4
0
 public UserProcessor(IUserRepository userRepository, ITokenProvider tokenProvider, IMapper mapper, ISmtpService smtpService, IHashingService hashingService, IPasswordGeneratorService passwordGeneratorService)
 {
     _userRepository           = userRepository;
     _tokenProvider            = tokenProvider;
     _mapper                   = mapper;
     _smtpService              = smtpService;
     _hashingService           = hashingService;
     _passwordGeneratorService = passwordGeneratorService;
 }
        public OpenAuthMembershipServices(IOrchardServices orchardServices,
            IMembershipService membershipService,
            IUsernameService usernameService,
            IPasswordGeneratorService passwordGeneratorService,
            IEnumerable<IOpenAuthUserEventHandler> openAuthUserEventHandlers) {
            _orchardServices = orchardServices;
            _membershipService = membershipService;
            _usernameService = usernameService;
            _passwordGeneratorService = passwordGeneratorService;
            _openAuthUserEventHandlers = openAuthUserEventHandlers;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public OpenAuthMembershipServices(IOrchardServices orchardServices,
                                          IMembershipService membershipService,
                                          IUsernameService usernameService,
                                          IPasswordGeneratorService passwordGeneratorService,
                                          IEnumerable <IOpenAuthUserEventHandler> openAuthUserEventHandlers)
        {
            _orchardServices           = orchardServices;
            _membershipService         = membershipService;
            _usernameService           = usernameService;
            _passwordGeneratorService  = passwordGeneratorService;
            _openAuthUserEventHandlers = openAuthUserEventHandlers;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Ejemplo n.º 7
0
 public AccountController(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IEventService events,
     INameGeneratorService nameGenerator,
     IColorGenerator colorGenerator,
     IPasswordGeneratorService passwordGenerator)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _interaction       = interaction;
     _clientStore       = clientStore;
     _events            = events;
     _nameGenerator     = nameGenerator;
     _colorGenerator    = colorGenerator;
     _passwordGenerator = passwordGenerator;
 }
Ejemplo n.º 8
0
 public AccountController(IPasswordGeneratorService passwordGeneratorService)
 {
     _passwordGeneratorService = passwordGeneratorService;
 }
Ejemplo n.º 9
0
 public PasswordGeneratorViewModel(IMvxMessenger messenger, IMvxNavigationService navigation, IPasswordDataService passwordDataService, IPasswordGeneratorService passwordGeneratorService) : base(messenger, navigation)
 {
     _passwordDataService      = passwordDataService;
     _passwordGeneratorService = passwordGeneratorService;
 }
Ejemplo n.º 10
0
 public SmsSenderJob(IOptions <SmsProvider> smsConfig, IRemoteDbConnection remoteQuery, IPasswordGeneratorService passwordGeneratorService)
 {
     _passwordGeneratorService = passwordGeneratorService;
     _remoteQuery = remoteQuery;
     _smsConfig   = smsConfig;
 }
 public PasswordGeneratorServiceTests()
 {
     _sut    = new PasswordGeneratorService();
     _length = 12;
 }
 public UserService(IUnitOfWork unitOfWork, IPasswordHasher passwordHasher, IPasswordGeneratorService passwordGeneratorService, IEmailService emailService) : base(unitOfWork)
 {
     _passwordHasher           = passwordHasher;
     _passwordGeneratorService = passwordGeneratorService;
     _emailService             = emailService;
 }
Ejemplo n.º 13
0
 public PasswordController(ILogger <PasswordController> logger, IPasswordGeneratorService passwordGeneratorService, IPasswordValidatorService passwordValidatorService)
 {
     _logger = logger;
     _passwordGeneratorService = passwordGeneratorService;
     _passwordValidatorService = passwordValidatorService;
 }
Ejemplo n.º 14
0
 public PasswordGeneratorController(IPasswordGeneratorService passwordGeneratorService)
 {
     _passwordGeneratorService = passwordGeneratorService;
 }
Ejemplo n.º 15
0
 /// <summary>
 /// .ctr
 /// </summary>
 /// <param name="passwordGenerator">IPasswordGeneratorService</param>
 public PasswordService(IPasswordGeneratorService passwordGenerator)
 {
     _passwordGenerator = passwordGenerator;
 }