示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 //public AccountController()
 //    : this(new MembershipWrapper(), new FormsAuthenticationWrapper(), null)
 //{
 //}
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountController"/> class.
 /// </summary>
 /// <param name="membershipObject">The membership object.</param>
 /// <param name="formsAuthenticationObject">The forms authentication object.</param>
 /// <param name="urlHelper">The URL helper.</param>
 public AccountController(IMembershipWrapper membershipObject,
                             IFormsAuthenticationWrapper formsAuthenticationObject,
                             //IUrlHelperWrapper urlHelper,
                             IUserProfileService userProfileService,
                             IForgetPasswordRequestService forgetPasswordRequestService,
                              ISettingService settingService,
     IUserAccountService userAccountService, ILog log)
     : base(userProfileService)
 {
     this.membership = membershipObject;
        // this.Url = urlHelper;
     this.authentication = formsAuthenticationObject;
     this._forgetPasswordRequestService = forgetPasswordRequestService;
     this._settingService = settingService;
     this._userProfileService = userProfileService;
     _userAccountService = userAccountService;
     _log = log;
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        //public AccountController()
        //    : this(new MembershipWrapper(), new FormsAuthenticationWrapper(), null)
        //{

        //}

        /// <summary>
        /// Initializes a new instance of the <see cref="AccountController"/> class.
        /// </summary>
        /// <param name="membershipObject">The membership object.</param>
        /// <param name="formsAuthenticationObject">The forms authentication object.</param>
        /// <param name="urlHelper">The URL helper.</param>
        public AccountController(IMembershipWrapper membershipObject,
                                 IFormsAuthenticationWrapper formsAuthenticationObject,
                                 //IUrlHelperWrapper urlHelper,
                                 IUserProfileService userProfileService,
                                 IForgetPasswordRequestService forgetPasswordRequestService,
                                 ISettingService settingService,
                                 IUserAccountService userAccountService, ILog log)
            : base(userProfileService)
        {
            this.membership = membershipObject;
            // this.Url = urlHelper;
            this.authentication = formsAuthenticationObject;
            this._forgetPasswordRequestService = forgetPasswordRequestService;
            this._settingService     = settingService;
            this._userProfileService = userProfileService;
            _userAccountService      = userAccountService;
            _log = log;
        }