public PageTypePickerPresenter(
     IPageTypePickerView view,
     ITranslator translator,
     IResourceHandler resourceHandler,
     IPageTypeWrapper pageType,
     HttpContextBase context)
 {
     if (view == null)
     {
         throw new ArgumentNullException("view");
     }
     if (translator == null)
     {
         throw new ArgumentNullException("translator");
     }
     if (resourceHandler == null)
     {
         throw new ArgumentNullException("resourceHandler");
     }
     if (pageType == null)
     {
         throw new ArgumentNullException("pageType");
     }
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     _view            = view;
     _translator      = translator;
     _resourceHandler = resourceHandler;
     _pageType        = pageType;
     _context         = context;
     _log             = Log.For(this);
 }
Exemple #2
0
 public PageTypeStrategy(
     ITranslator translator,
     IGlobalSettingsRepository globalSettingsRepository,
     IUserSettingsRepository userSettingsRepository,
     IPageTypeWrapper pageType)
 {
     if (translator == null)
     {
         throw new ArgumentNullException("translator");
     }
     if (globalSettingsRepository == null)
     {
         throw new ArgumentNullException("globalSettingsRepository");
     }
     if (userSettingsRepository == null)
     {
         throw new ArgumentNullException("userSettingsRepository");
     }
     if (pageType == null)
     {
         throw new ArgumentNullException("pageType");
     }
     _translator = translator;
     _globalSettingsRepository = globalSettingsRepository;
     _userSettingsRepository   = userSettingsRepository;
     _pageType = pageType;
 }
 public PageTypeStrategy(
     ITranslator translator,
     IGlobalSettingsRepository globalSettingsRepository,
     IUserSettingsRepository userSettingsRepository,
     IPageTypeWrapper pageType)
 {
     if (translator == null) throw new ArgumentNullException("translator");
     if (globalSettingsRepository == null) throw new ArgumentNullException("globalSettingsRepository");
     if (userSettingsRepository == null) throw new ArgumentNullException("userSettingsRepository");
     if (pageType == null) throw new ArgumentNullException("pageType");
     _translator = translator;
     _globalSettingsRepository = globalSettingsRepository;
     _userSettingsRepository = userSettingsRepository;
     _pageType = pageType;
 }
 public PageTypePickerPresenter(
     IPageTypePickerView view,
     ITranslator translator,
     IResourceHandler resourceHandler,
     IPageTypeWrapper pageType,
     HttpContextBase context)
 {
     if (view == null) throw new ArgumentNullException("view");
     if (translator == null) throw new ArgumentNullException("translator");
     if (resourceHandler == null) throw new ArgumentNullException("resourceHandler");
     if (pageType == null) throw new ArgumentNullException("pageType");
     if (context == null) throw new ArgumentNullException("context");
     _view = view;
     _translator = translator;
     _resourceHandler = resourceHandler;
     _pageType = pageType;
     _context = context;
     _log = Log.For(this);
 }