public AdministrationController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory, IAuthenticationService authenticationService, IMailer mailer)
            : base(loggedUserProvider, serviceFactory)
        {
            _accountService = serviceFactory.CreateAccountService();

            if (mailer == null)
                throw new ArgumentNullException("mailer");
            _mailer = mailer;

            if (authenticationService == null)
                throw new ArgumentNullException("authenticationService");
            _authenticationService = authenticationService;
            _authenticationService.AuthenticationManager = AuthenticationManager;
        }
 public AccountProfileController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory)
     : base(loggedUserProvider, serviceFactory)
 {
     _accountService = serviceFactory.CreateAccountService();
     _accountProfileService = serviceFactory.CreateAccountProfileService();
 }