Exemple #1
0
 public PhanQuyenController(IAccount298Repository account298Repository, IUnitOfWork unitOfWork, IFormsAuthentication formAuthentication, HttpContextBase httpContext)
 {
     _account298Repository   = account298Repository;
     _unitOfWork             = unitOfWork;
     this.formAuthentication = formAuthentication;
     _httpContext            = httpContext;
 }
 public AccountController(ICustomerService customerService, IFormsAuthentication formsAuthentication,
                          IMembershipService membershipService)
 {
     _customerService     = customerService;
     _formsAuthentication = formsAuthentication;
     _membershipService   = membershipService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ItemsController"/> class.
 /// </summary>
 /// <param name="itemsService">
 /// The items Service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The forms authentication.
 /// </param>
 public ItemsController(
     IItemsService itemsService,
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.itemsService = itemsService;
 }
        protected AuthenticationPage(IFormsAuthentication formsAuthentication)
        {
            if(formsAuthentication == null)
                throw new ArgumentNullException("formsAuthentication");

            this._formsAuthentication = formsAuthentication;
        }
 public UploadBotController(ITeamManagementCommands teamCommands, IFormsAuthentication formsAuthentication, IConfigurationRepository configurationRepository, MatchStarter matchStarter)
 {
     _teamCommands = teamCommands;
       _formsAuthentication = formsAuthentication;
       _configurationRepository = configurationRepository;
       _matchStarter = matchStarter;
 }
        public SamplePushUserRegistrationService(HttpContextBase context, WebOperationContext webOperationContext, IFormsAuthentication formsAuth, IMembershipService membershipService, IPushUserEndpointsRepository pushUserEndpointsRepository)
        {
            if ((context == null) && (HttpContext.Current == null))
            {
                throw new ArgumentNullException("context", "Context cannot be null if not running on a Web context.");
            }

            if (pushUserEndpointsRepository == null)
            {
                throw new ArgumentNullException("pushUserEndpointsRepository", "PushUserEndpoints repository cannot be null.");
            }

            if (formsAuth == null)
            {
                throw new ArgumentNullException("formsAuth", "Forms Authentication service cannot be null.");
            }

            if (membershipService == null)
            {
                throw new ArgumentNullException("membershipService", "Membership service cannot be null.");
            }

            this.webOperationContext = webOperationContext;
            this.context = context;
            this.pushUserEndpointsRepository = pushUserEndpointsRepository;
            this.formsAuth = formsAuth;
            this.membershipService = membershipService;
        }
Exemple #7
0
 public AuthController(IOpenIdRelyingParty relyingParty, IFormsAuthentication formsAuthentication,
                       IUserServices userServices)
 {
     this.relyingParty = relyingParty;
     this.formsAuthentication = formsAuthentication;
     this.userServices = userServices;
 }
Exemple #8
0
        public UserAdministrationController(
            IMembershipSettings membershipSettings,
            IUserService userService,
            IPasswordService passwordService,
            IRolesService rolesService,
            ISmtpClient smtpClient, IMembershipService service, IFormsAuthentication formsAuth,
            IMEmployeeRepository mEmployeeRepository,
            IMMenuRepository mMenuRepository,
            ITPrivilegeRepository tPrivilegeRepository)
        {
            _membershipSettings = membershipSettings;
            _userService        = userService;
            _passwordService    = passwordService;
            _rolesService       = rolesService;
            _smtpClient         = smtpClient;
            FormsAuth           = formsAuth ?? new FormsAuthenticationService();
            MembershipService   = service ?? new AccountMembershipService();


            Check.Require(mEmployeeRepository != null, "mEmployeeRepository may not be null");
            Check.Require(mMenuRepository != null, "mMenuRepository may not be null");
            Check.Require(tPrivilegeRepository != null, "tPrivilegeRepository may not be null");

            this._mEmployeeRepository  = mEmployeeRepository;
            this._mMenuRepository      = mMenuRepository;
            this._tPrivilegeRepository = tPrivilegeRepository;
        }
Exemple #9
0
        public async void AuthenticatorLoginShouldLoginWhenServiceReturnsUser()
        {
            User user = new User();

            user.Id   = 1;
            user.Name = "a";

            LoginAttempt attempt = new LoginAttempt(user);

            LoginModel model = new LoginModel();

            model.Login    = "******";
            model.Password = "******";

            ILoginService        service = MockRepository.GenerateStub <ILoginService>();
            ISessionHelper       session = MockRepository.GenerateStub <ISessionHelper>();
            IFormsAuthentication forms   = MockRepository.GenerateStub <IFormsAuthentication>();

            service.Stub(s => s.Login(model.Login, model.Password)).Return(Task <LoginAttempt> .FromResult(attempt));

            Authenticator authenticator = new Authenticator(service, session, forms);
            bool          result        = await authenticator.Login(model);

            Assert.IsTrue(result);
            service.AssertWasCalled(s => s.Login(model.Login, model.Password));
            Assert.AreEqual(session.User.Id, user.Id);
            forms.AssertWasCalled(f => f.SetAuthCookie(model.Login, true));
        }
Exemple #10
0
        public async void AuthenticatorLoginShouldNotLoginWhenServiceReturnsNull()
        {
            User user = null;

            LoginAttempt attempt = new LoginAttempt(user);

            LoginModel model = new LoginModel();

            model.Login    = "******";
            model.Password = "******";

            ILoginService        service = MockRepository.GenerateStub <ILoginService>();
            ISessionHelper       session = MockRepository.GenerateStub <ISessionHelper>();
            IFormsAuthentication forms   = MockRepository.GenerateStub <IFormsAuthentication>();

            service.Stub(s => s.Login(model.Login, model.Password)).Return(Task <LoginAttempt> .FromResult(attempt));

            Authenticator authenticator = new Authenticator(service, session, forms);
            bool          result        = await authenticator.Login(model);

            Assert.IsFalse(result);
            service.AssertWasCalled(s => s.Login(model.Login, model.Password));
            session.AssertWasNotCalled(s => s.User.Id);
            forms.AssertWasNotCalled(f => f.SetAuthCookie(Arg <string> .Is.Anything, Arg <bool> .Is.Anything));
        }
 public AccountController(ICustomerService customerService, IFormsAuthentication formsAuthentication,
     IMembershipService membershipService)
 {
     _customerService = customerService;
     _formsAuthentication = formsAuthentication;
     _membershipService = membershipService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="OrdersController"/> class. 
 /// Order controller constructor.
 /// </summary>
 /// <param name="orderService">
 /// The order service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The form authentication.
 /// </param>
 public OrdersController(
     IOrderService orderService, 
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.orderService = orderService;
 }
Exemple #13
0
 public AuthController(IOpenIdRelyingParty relyingParty, IFormsAuthentication formsAuthentication,
                       IUserServices userServices)
 {
     this.relyingParty        = relyingParty;
     this.formsAuthentication = formsAuthentication;
     this.userServices        = userServices;
 }
        public OAuthAuthenticationPortal(IUserService userService, IFormsAuthentication formsAuthentication)
            : base(userService, formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();

            this.userService = userService;
        }
 public OrderController(ICustomerService customerService, IOrderService orderService, IFormsAuthentication formsAuthentication, ICookieStorageService cookieStorageService)
     : base(cookieStorageService)
 {
     _customerService = customerService;
     _orderService = orderService;
     _formsAuthentication = formsAuthentication;
 }
        private static TestableAuthController GetTestableAuthController(
            IOpenIdRelyingParty relyingParty,
            IFormsAuthentication formsAuth,
            CreateUser createUser,
            GetUserByClaimId getUser,
            string providerUrl = @"http:\\testprovider.com")
        {
            HttpContextBase contextMock    = MvcMockHelpers.FakeHttpContext(providerUrl);
            var             authController = new TestableAuthController(relyingParty, formsAuth, createUser, getUser);

            authController.ControllerContext = new ControllerContext(contextMock, new RouteData(), authController);
            authController.InvokeInitialize(authController.ControllerContext.RequestContext);

            // default routes
            var routes = new RouteCollection();

            routes.MapRoute(
                "Default",                    // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = "" } // Parameter defaults
                );
            authController.Url = new UrlHelper(authController.ControllerContext.RequestContext,
                                               routes);

            return(authController);
        }
 public PublicController(
     IMiddleManagement MiddleManagement,
     IUserSession UserSession,
     IFormsAuthentication FormAuthentication)
     : base(MiddleManagement, UserSession, FormAuthentication)
 {
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="authenticationService">The <see cref="AuthenticationService"/></param>
 /// <param name="pluginsService">The <see cref="Core.Services.PluginsService"/></param>
 /// <param name="cultureService">The <see cref="Core.Services.CultureService"/></param>
 /// <param name="formsAuthentication">The <see cref="FormsAuthentication"/> wrapper</param>
 public LoginController(IAuthenticationService authenticationService, IPluginsService pluginsService, ICultureService cultureService, IFormsAuthentication formsAuthentication)
 {
     this.authenticationService = authenticationService;
     this.pluginsService = pluginsService;
     this.cultureService = cultureService;
     this.formsAuthentication = formsAuthentication;
 }
Exemple #19
0
        public SamplePushUserRegistrationService(HttpContextBase context, WebOperationContext webOperationContext, IFormsAuthentication formsAuth, IMembershipService membershipService, IPushUserEndpointsRepository pushUserEndpointsRepository, CloudQueueClient cloudQueueClient)
        {
            if ((context == null) && (HttpContext.Current == null))
            {
                throw new ArgumentNullException("context", "Context cannot be null if not running on a Web context.");
            }

            if (pushUserEndpointsRepository == null)
            {
                throw new ArgumentNullException("pushUserEndpointsRepository", "PushUserEndpoints repository cannot be null.");
            }

            if (formsAuth == null)
            {
                throw new ArgumentNullException("formsAuth", "Forms Authentication service cannot be null.");
            }

            if (membershipService == null)
            {
                throw new ArgumentNullException("membershipService", "Membership service cannot be null.");
            }

            if ((cloudQueueClient == null) && (GetStorageAccountFromConfigurationSetting() == null))
            {
                throw new ArgumentNullException("cloudQueueClient", "Cloud Queue Client cannot be null if no configuration is loaded.");
            }

            this.cloudQueueClient            = cloudQueueClient ?? GetStorageAccountFromConfigurationSetting().CreateCloudQueueClient();
            this.webOperationContext         = webOperationContext;
            this.context                     = context;
            this.pushUserEndpointsRepository = pushUserEndpointsRepository;
            this.formsAuth                   = formsAuth;
            this.membershipService           = membershipService;
        }
Exemple #20
0
 public AccountController(IKcsarContext db, AccountsService accountsSvc, IFormsAuthentication formsAuth, ILog log, MembershipProvider membership)
     : base(db, log)
 {
     this.membership      = membership;
     this.accountsService = accountsSvc;
     this.formsAuth       = formsAuth;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PackagesController"/> class.
 /// </summary>
 /// <param name="packagesService">
 /// The packages service.
 /// </param>
 /// <param name="formsAuthentication">
 /// The forms authentication.
 /// </param>
 public PackagesController(
     IPackagesService packagesService,
     IFormsAuthentication formsAuthentication)
     : base(formsAuthentication)
 {
     this.packagesService = packagesService;
 }
Exemple #22
0
 public AccountController(IFormsAuthentication formsAuthentication, 
     IUserRepository users, ICommandSender cmds)
 {
     _formsAuthentication = formsAuthentication;
     _users = users;
     _cmds = cmds;
 }
Exemple #23
0
 public AccountController(ICommandBus commandBus, IUserRepository userRepository,
                          IFormsAuthentication formAuthentication)
 {
     this.commandBus = commandBus;
     this.userRepository = userRepository;
     this.formAuthentication = formAuthentication;
 }
 public AccountController(IAccountTasks accountTasks, IUserMailer userMailer,
                      IFormsAuthentication formsAuthentication)
 {
     _accountTasks = accountTasks;
       _userMailer = userMailer;
       _formsAuthentication = formsAuthentication;
 }
Exemple #25
0
 public AccountController(IFormsAuthentication authentication,
                          IRepository <Account> accountRepository, IRepository <LoginLog> loginLogRepository)
 {
     _authentication     = authentication;
     _accountRepository  = accountRepository;
     _loginLogRepository = loginLogRepository;
 }
Exemple #26
0
 public SessionController(IFormsAuthentication formsAuthentication, 
     IAuthenticationService authenticationService, IProductoService productoService)
 {
     this.formsAuthentication = formsAuthentication;
     this.authenticationService = authenticationService;
     this.productoService = productoService;
 }
 // This constructor is not used by the MVC framework but is instead provided for ease
 // of unit testing this type. See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth, IMembershipService service,
     ILogger logger)
 {
     FormsAuth = formsAuth ?? new FormsAuthenticationService();
     MembershipService = service ?? new AccountMembershipService();
     Logger = logger ?? new Logger.Logger();
 }
 public AccountController(IKcsarContext db, AccountsService accountsSvc, IFormsAuthentication formsAuth, ILog log, MembershipProvider membership)
     : base(db, log)
 {
     this.membership = membership;
       this.accountsService = accountsSvc;
       this.formsAuth = formsAuth;
 }
Exemple #29
0
 public CustomerController(ICookieStorageService cookieStorageService,
                           ICustomerService customerService,
                           IFormsAuthentication formsAuthentication) : base(cookieStorageService)
 {
     _customerService     = customerService;
     _formsAuthentication = formsAuthentication;
 }
Exemple #30
0
        public SessionsController(IFormsAuthentication formsAuthentication, IDocumentSession session)
        {
            if (formsAuthentication == null) throw new ArgumentNullException("formsAuthentication");
            if (session == null) throw new ArgumentNullException("session");

            this.formsAuthentication = formsAuthentication;
            this.session = session;
        }
        public void SetUp()
        {
            AutoMapperConfiguration.Configure();
            Mapper.AssertConfigurationIsValid();

            this.MembershipService = new FakeMembershipService();
            this.FormsAuthentication = new FakeFormsAuthentication();
        }
 // This constructor is not used by the MVC framework but
 // is instead provided for ease of unit testing this type.
 // See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth, 
     IMembershipService service)
 {
     this.FormsAuth =
         formsAuth ?? new FormsAuthenticationService();
     this.MembershipService = 
         service ?? new AccountMembershipService();
 }
 // This constructor is not used by the MVC framework but
 // is instead provided for ease of unit testing this type.
 // See the comments at the end of this file for more
 // information.
 public AccountController(IFormsAuthentication formsAuth,
                          IMembershipService service)
 {
     this.FormsAuth =
         formsAuth ?? new FormsAuthenticationService();
     this.MembershipService =
         service ?? new AccountMembershipService();
 }
        protected AuthenticationPortal(IUserService userService, IFormsAuthentication formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();
            Ensure.That(() => formsAuthentication).IsNotNull();

            this.userService = userService;
            this.formsAuthentication = formsAuthentication;
        }
        public UserController(IFormsAuthentication formsAuthentication, IAuthenticationService authenticationService)
        {
            Ensure.That(() => formsAuthentication).IsNotNull();
            Ensure.That(() => authenticationService).IsNotNull();

            this.formsAuthentication = formsAuthentication;
            this.authenticationService = authenticationService;
        }
Exemple #36
0
        public AccountController(
			IModuleRepository moduleRepo,
			IFormsAuthentication formsAuth,
			IMembershipService service)
            : base(moduleRepo, service)
        {
            FormsAuth = formsAuth;
        }
        public void SetUp()
        {
            AutoMapperConfiguration.Configure();

            this.orderService = new FakeOrderService();
            this.formsAuthentication = new FakeFormsAuthentication();
            this.formsAuthentication.SetAuthenticationToken("*****@*****.**", true);
        }
 public AccountRegisterController(ILocalAuthenticationService authentication_service,
                                  ICommandBus command_bus,
                                  IFormsAuthentication forms_authentication)
 {
     _authentication_service = authentication_service;
     _command_bus            = command_bus;
     _forms_authentication   = forms_authentication;
 }
Exemple #39
0
 public FeaturesController(ILocalAuthenticationService authenticationService,
                           IUserService userService,
                           IExternalAuthenticationService externalAuthenticationService,
                           IFormsAuthentication formsAuthentication,
                           IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
 }
 public AccountRegisterController(ILocalAuthenticationService authentication_service,
                                  ICommandBus command_bus,
                                  IFormsAuthentication forms_authentication)
 {
     _authentication_service = authentication_service;
     _command_bus = command_bus;
     _forms_authentication = forms_authentication;
 }
Exemple #41
0
 public AccountController(
     IModuleRepository moduleRepo,
     IFormsAuthentication formsAuth,
     IMembershipService service)
     : base(moduleRepo, service)
 {
     FormsAuth = formsAuth;
 }
 public AccountController(IUserModelService userService,
                          IFormsAuthentication formsAuthService,
                          ILoginLogService logService)
 {
     this._userService      = userService;
     this._logService       = logService;
     this._formsAuthService = formsAuthService;
 }
        public AuthenticationController(IApplicationServices applicationServices, IFormsAuthentication formsAuthentication, IAuthenticator authenticator)
            : base(applicationServices)
        {
            Guard.IsNotNull(formsAuthentication, "formsAuthentication");
            Guard.IsNotNull(authenticator, "authenticator");

            this.formsAuthentication = formsAuthentication;
            this.authenticator = authenticator;
        }
Exemple #44
0
 public AuthSurfaceController(
     IAuthService authService,
     IFormsAuthentication formsAuthentication,
     IAirFlowHelper airFlowHelper)
 {
     _authService         = authService;
     _formsAuthentication = formsAuthentication;
     _airFlowHelper       = airFlowHelper;
 }
 public AccountLogOnController(ILocalAuthenticationService authenticationService,
                               ICustomerService customerService,
                               IExternalAuthenticationService externalAuthenticationService,
                               IFormsAuthentication formsAuthentication,
                               IActionArguments actionArguements)
     : base(authenticationService, customerService, externalAuthenticationService,
            formsAuthentication, actionArguements)
 {
 }
 public AccountRegisterController(ILocalAuthenticationService authenticationService,
                                  ICustomerService customerService,
                                  IExternalAuthenticationService externalAuthenticationService,
                                  IFormsAuthentication formsAuthentication,
                                  IActionArguments actionArguements)
     : base(authenticationService, customerService, externalAuthenticationService,
           formsAuthentication, actionArguements)
 {            
 }
Exemple #47
0
 public FederationAuthenticationModule(IFormsAuthentication formsAuthentication, IFormsAuthenticationTicketFactory formsAuthenticationTicketFactory, ILog log, IRedirectInformationFactory redirectInformationFactory, IWebFacade webFacade, IWindowsFederationIdentityFactory windowsFederationIdentityFactory)
 {
     this.FormsAuthentication = formsAuthentication ?? throw new ArgumentNullException(nameof(formsAuthentication));
     this.FormsAuthenticationTicketFactory = formsAuthenticationTicketFactory ?? throw new ArgumentNullException(nameof(formsAuthenticationTicketFactory));
     this.Log = log ?? throw new ArgumentNullException(nameof(log));
     this.RedirectInformationFactory = redirectInformationFactory ?? throw new ArgumentNullException(nameof(redirectInformationFactory));
     this.WebFacade = webFacade ?? throw new ArgumentNullException(nameof(webFacade));
     this.WindowsFederationIdentityFactory = windowsFederationIdentityFactory ?? throw new ArgumentNullException(nameof(windowsFederationIdentityFactory));
 }
Exemple #48
0
 public BannersController(ILocalAuthenticationService authenticationService,
                          IUserService userService,
                          IBannerService bannerService,
                          IExternalAuthenticationService externalAuthenticationService,
                          IFormsAuthentication formsAuthentication,
                          IActionArguments actionArguments)
 {
     _bannerService = bannerService;
 }
Exemple #49
0
 public Authenticator(
     ILoginService loginService,
     ISessionHelper sessionHelper,
     IFormsAuthentication formsAuthentication)
 {
     this.loginService        = loginService;
     this.sessionHelper       = sessionHelper;
     this.formsAuthentication = formsAuthentication;
 }
 public CheckoutController(ICookieStorageService cookieStorageService, ICustomerService customerService,
                           IFormsAuthentication formsAuthentication, IMembershipService membershipService, IOrderService orderService)
 {
     _cookieStorageService = cookieStorageService;
     _customerService      = customerService;
     _formsAuthentication  = formsAuthentication;
     _membershipService    = membershipService;
     _orderService         = orderService;
 }
        public PlainAuthenticationPortal(IUserService userService, IMembershipProvider membershipProvider, IFormsAuthentication formsAuthentication)
            : base(userService, formsAuthentication)
        {
            Ensure.That(() => userService).IsNotNull();
            Ensure.That(() => membershipProvider).IsNotNull();

            this.userService = userService;
            this.membershipProvider = membershipProvider;
        }
Exemple #52
0
        public UserService(IRepository<Utente> repo, IFormsAuthentication formsAuth, IAuditing auditing, IMailService mailService )
        {
            _userRepo = repo;
            _formsAuth = formsAuth;
            _mailService = mailService;

            if ((_auditing = auditing) == null)
                throw new ArgumentNullException("auditing");
        }
        public void SetUp()
        {
            Common.SetUpUmbracoContext();

            _authService         = Substitute.For <IAuthService>();
            _formsAuthentication = Substitute.For <IFormsAuthentication>();
            _airFlowHelper       = Substitute.For <IAirFlowHelper>();

            _authController = new AuthSurfaceController(_authService, _formsAuthentication, _airFlowHelper);
        }
 public PortfolioController(ILocalAuthenticationService authenticationService,
                            IUserService userService,
                            IProjectService projectService,
                            IExternalAuthenticationService externalAuthenticationService,
                            IFormsAuthentication formsAuthentication,
                            IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, formsAuthentication, actionArguments)
 {
     _projectService = projectService;
 }
 public SubscriberController(ILocalAuthenticationService authenticationService,
                             IUserService userService,
                             ISubscriberService subscriberService,
                             IExternalAuthenticationService externalAuthenticationService,
                             IFormsAuthentication formsAuthentication,
                             IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
     _subscriberService = subscriberService;
 }
 public ProfileController(
     IUserServices userServices,
     ICountryServices countryServices,
     IFormsAuthentication formsAuthentication)
     : base(userServices, null)
 {
     this.userServices        = userServices;
     this.countryServices     = countryServices;
     this.formsAuthentication = formsAuthentication;
 }
 public ContactController(ILocalAuthenticationService authenticationService,
                          IUserService userService,
                          IBlogService blogService,
                          IExternalAuthenticationService externalAuthenticationService,
                          IFormsAuthentication formsAuthentication,
                          IActionArguments actionArguments)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
     _blogService = blogService;
 }
 public AuthController(
     IOpenIdRelyingParty relyingParty,
     IFormsAuthentication formsAuthentication,
     CreateUser createUser,
     GetUserByClaimId getUserByClaimId)
 {
     _relyingParty        = relyingParty;
     _formsAuthentication = formsAuthentication;
     _createUser          = createUser;
     _getUserByClaimId    = getUserByClaimId;
 }
Exemple #59
0
 public ProjectsController(ILocalAuthenticationService authenticationService,
                           IUserService userService,
                           IBlogService blogService,
                           IExternalAuthenticationService externalAuthenticationService,
                           IFormsAuthentication formsAuthentication,
                           IActionArguments actionArguments, IProjectService projectService)
     : base(authenticationService, userService, externalAuthenticationService, actionArguments)
 {
     _blogService    = blogService;
     _projectService = projectService;
 }
Exemple #60
0
 public ProfileController(
     UpdateUser updateUser,
     GetUserByClaimId getUser,
     GetCountries getCountries,
     IFormsAuthentication formsAuthentication)
     : base(getUser, null)
 {
     _updateUser          = updateUser;
     _getCountries        = getCountries;
     _formsAuthentication = formsAuthentication;
 }