public AccountController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory, IAuthenticationService authenticationService, IMailer mailer) : base(loggedUserProvider, serviceFactory) { if (mailer == null) throw new ArgumentNullException("mailer"); _mailer = mailer; if (authenticationService == null) throw new ArgumentNullException("authenticationService"); _authenticationService = authenticationService; _authenticationService.AuthenticationManager = AuthenticationManager; _accountService = ServiceFactory.CreateAccountService(); }
public NewsController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory) : base(loggedUserProvider, serviceFactory) { _newsService = ServiceFactory.CreateNewsService(); _resourceService = serviceFactory.CreateResourceService(); }
public AccountProfileController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory) : base(loggedUserProvider, serviceFactory) { _accountService = serviceFactory.CreateAccountService(); _accountProfileService = serviceFactory.CreateAccountProfileService(); }
public HomeController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory) : base(loggedUserProvider, serviceFactory) { _newsService = serviceFactory.CreateNewsService(); }