Exemplo n.º 1
0
 public TestController(ILanguageService languageService,
     ICurrencyService currencyService, ILocalizationService localizationService,
     IWorkContext workContext, IInstallationService installationService,
     IQueuedEmailService queuedEmailService, IEmailAccountService emailAccountService,            
     IUserService userService, IWebHelper webHelper, ICacheManager cacheManager,
     IPermissionService permissionService, IMobileDeviceHelper mobileDeviceHelper,
     HttpContextBase httpContext, UserSettings userSettings, MediaSettings mediaSettings,
     SiteInformationSettings siteInformationSettings, EmailAccountSettings emailAccountSettings,
     CommonSettings commonSettings, LocalizationSettings localizationSettings)
 {
     this.languageService         = languageService;
     this.currencyService         = currencyService;
     this.localizationService     = localizationService;
     this.workContext             = workContext;
     this.queuedEmailService      = queuedEmailService;
     this.emailAccountService     = emailAccountService;
     this.installationService     = installationService;
     this.userService             = userService;
     this.webHelper               = webHelper;
     this.permissionService       = permissionService;
     this.mobileDeviceHelper      = mobileDeviceHelper;
     this.mediaSettings           = mediaSettings;
     this.httpContext             = httpContext;
     this.userSettings            = userSettings;
     this.siteInformationSettings = siteInformationSettings;
     this.emailAccountSettings    = emailAccountSettings;
     this.cacheManager            = cacheManager;
     this.commonSettings          = commonSettings;
     this.localizationSettings    = localizationSettings;
 }
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="httpContext">HTTP context</param>
 /// <param name="userService">User service</param>
 /// <param name="userSettings">User settings</param>
 public FormsAuthenticationService(HttpContextBase httpContext,
     IUserService userService, 
     ISessionManager sessionManager, 
     UserSettings userSettings, IWebHelper webHelper)
 {
     this.httpContext        = httpContext;
     this.userService        = userService;
     this.sessionManager     = sessionManager;
     this.userSettings       = userSettings;
     this.webHelper          = webHelper;
     this.expirationTimeSpan = FormsAuthentication.Timeout;
 }