public CreateAuthenticationWithGeneratedPassword(IDomainRepository domainRepository,
                                                  IGeneratePassword passwordGenerator,
                                                  IHash hasher)
 {
     _domainRepository  = domainRepository;
     _passwordGenerator = passwordGenerator;
     _hasher            = hasher;
 }
        public UserController(UserManager <User> userManager, SignInManager <User> signInManager,
                              ApplicationContext context, IUserService userService, ISelectListService selectListService,
                              IAccountService accountService, IEmployeeService employeeService
                              , IExchangeRateService exchangeRateService, ICompanyService companyService, IValidationService validationService,
                              IXmlService xmlService)

        {
            _userManager             = userManager;
            _signInManager           = signInManager;
            this.context             = context;
            this.userService         = userService;
            this.selectListService   = selectListService;
            this.accountService      = accountService;
            generatePasswordService  = new GeneratePasswordService();
            emailService             = new EmailService();
            this.employeeService     = employeeService;
            this.exchangeRateService = exchangeRateService;
            this.companyService      = companyService;
            this.validationService   = validationService;
            this.xmlService          = xmlService;
        }