public MainInitializer(IAllianceInitializer allianceInitializer,
                               IMapGInitializer mapGInitializer,
                               IAuthUsersInitializer authUsersInitializer,
                               IGameUserService gameUserService,
                               INpcInitializer npcInitializer,
                               IUserInitializer userInitializer,
                               IUserNameSercherPkCache userNameSercherPkCache,
                               IUserLocalStorageCache userCache,
                               IUserRepository userRepo,
                               IAllianceService allianceService,
                               IChannelService channelService, IDbProvider provider)
        {
            _allianceInitializer  = allianceInitializer;
            _mapGInitializer      = mapGInitializer;
            _authUsersInitializer = authUsersInitializer;
            _gameUserService      = gameUserService;
            _npcInitializer       = npcInitializer;
            _userInitializer      = userInitializer;

            _userNameSercherPkCache = userNameSercherPkCache;
            _userCache       = userCache;
            _userRepo        = userRepo;
            _allianceService = allianceService;
            _provider        = provider;

            _channelService = (ChannelService)channelService;

            _admUser  = MainUserRepository.GetAdminUser();
            _textUser = MainUserRepository.GetTextureUser();
            _demoUser = MainUserRepository.GetUser(MainUserRepository.DemoUserName);
        }
 public ApplicationUserController(UserManager <UserIdentityChanged> UserManager,
                                  SignInManager <UserIdentityChanged> SingInManager,
                                  IValidator <User> UserValidator, IUserInitializer UserInitializer)
 {
     userManager     = UserManager;
     singInManager   = SingInManager;
     userValidator   = UserValidator;
     userInitializer = UserInitializer;
     userValidators  = new List <IUserValidator>
     {
         new UserEmailValidator(), new UserFullNameValidator(),
         new UserPasswordValidator(), new UserNameValidators()
     };
 }