public StoreLocatorController(IComposerContext composerContext, IStoreViewService storeViewService, IStoreDirectoryViewService storeDirectoryViewService, IStoreUrlProvider storeUrlProvider, IBreadcrumbViewService breadcrumbViewService, ILanguageSwitchService languageSwitchViewService) : base(composerContext, storeViewService, storeDirectoryViewService, storeUrlProvider, breadcrumbViewService, languageSwitchViewService) { }
public StoreLocatorController(IStoreLocatorViewService storesListViewService, IStoreViewService storeViewService, IComposerContext composerContext, IMapConfigurationViewService mapConfigurationViewService) { StoreLocatorViewService = storesListViewService; ComposerContext = composerContext; StoreViewService = storeViewService; MapConfigurationViewService = mapConfigurationViewService; }
public StoreContext( IComposerContext composerContext, IStoreViewService service, HttpRequestBase request, Lazy <IPreviewModeService> previewModeService) { ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext)); StoreViewService = service ?? throw new ArgumentNullException(nameof(service)); Request = request ?? throw new ArgumentNullException(nameof(request)); PreviewModeService = previewModeService ?? throw new ArgumentNullException(nameof(previewModeService)); _viewModel = new Lazy <StoreViewModel>(() => GetStoreViewModelAsync().Result, true); }
protected StoreLocatorBaseController( IComposerContext composerContext, IStoreViewService storeViewService, IStoreDirectoryViewService storeDirectoryViewService, IStoreUrlProvider storeUrlProvider, IBreadcrumbViewService breadcrumbViewService, ILanguageSwitchService languageSwitchService ) { ComposerContext = composerContext ?? throw new ArgumentNullException(nameof(composerContext)); StoreViewService = storeViewService ?? throw new ArgumentNullException(nameof(storeViewService)); StoreDirectoryViewService = storeDirectoryViewService ?? throw new ArgumentNullException(nameof(storeDirectoryViewService)); StoreUrlProvider = storeUrlProvider ?? throw new ArgumentNullException(nameof(storeUrlProvider)); BreadcrumbViewService = breadcrumbViewService ?? throw new ArgumentNullException(nameof(breadcrumbViewService)); LanguageSwitchService = languageSwitchService ?? throw new ArgumentNullException(nameof(languageSwitchService)); }
public StoreController(IStoreViewService storeViewService, IComposerContext composerContext) { StoreViewService = storeViewService; ComposerContext = composerContext; }