Пример #1
0
		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();
		}
Пример #2
0
 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();
 }
Пример #4
0
 public HomeController(ILoggedUserProvider loggedUserProvider, ServiceFactoryBase serviceFactory)
     : base(loggedUserProvider, serviceFactory)
 {
     _newsService = serviceFactory.CreateNewsService();
 }