public SiteSettingsService(IContentRepository contentRepository, IContextResolver contextResolver, IStartPageService startPageRepository) { Guard.ValidateObject(contentRepository); Guard.ValidateObject(contextResolver); Guard.ValidateObject(startPageRepository); _contentRepository = contentRepository; _contextResolver = contextResolver; _startPageRepository = startPageRepository; }
public PageTypeServices( IMenuService menuPageRepository, IStartPageService startPageRepository, ISiteSettingsService siteSettingsPageRepository, IContentPageService contentPageService, IKeyValueService keyValueRepository) { Guard.ValidateObject(menuPageRepository); Guard.ValidateObject(startPageRepository); Guard.ValidateObject(keyValueRepository); Guard.ValidateObject(siteSettingsPageRepository); Guard.ValidateObject(contentPageService); MenuService = menuPageRepository; StartPageService = startPageRepository; KeyValueService = keyValueRepository; SiteSettingsService = siteSettingsPageRepository; ContentPageService = contentPageService; }