示例#1
0
        public PostFactory(
            IDateService dateService,
            IUserContext userContext,
            IPostRepository postRepository,
            ITagRepository tagRepository,
            ITagFactory tagFactory,
            IWebsiteInfo websiteInfo
            )
        {
            dateService.CheckArgumentIsNull();
            _dateService = dateService;

            userContext.CheckArgumentIsNull();
            _userContext = userContext;

            postRepository.CheckArgumentIsNull();
            _postRepository = postRepository;

            tagRepository.CheckArgumentIsNull(nameof(tagRepository));
            _tagRepository = tagRepository;

            tagFactory.CheckArgumentIsNull(nameof(tagFactory));
            _tagFactory = tagFactory;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#2
0
        public PostService(IPostRepository repository,
                           IPostTypeRepository postTypeRepository,
                           ILanguageRepository languageRepository,
                           ICategoryRepository categoryRepository,
                           IPostMetaRepository metaRepository,
                           IPostFactory factory,
                           IDateService dateService,
                           IWebsiteInfo websiteInfo
                           )
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            postTypeRepository.CheckArgumentIsNull(nameof(postTypeRepository));
            _postTypeRepository = postTypeRepository;

            languageRepository.CheckArgumentIsNull(nameof(languageRepository));
            _languageRepository = languageRepository;

            categoryRepository.CheckArgumentIsNull(nameof(categoryRepository));
            _categoryRepository = categoryRepository;

            metaRepository.CheckArgumentIsNull(nameof(metaRepository));
            _metaRepository = metaRepository;

            factory.CheckArgumentIsNull();
            _factory = factory;

            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#3
0
 public SearchService(
     IPostRepository postRepository,
     IWebsiteInfo websiteInfo)
 {
     postRepository.CheckArgumentIsNull();
     _postRepository = postRepository;
     websiteInfo.CheckArgumentIsNull();
     _websiteInfo = websiteInfo;
 }
示例#4
0
        public WebsiteVisitFactory(IDateService dateService,
                                   IWebsiteInfo websiteInfo)
        {
            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#5
0
        public ShippingService(
            IWebsiteInfo websiteInfo,
            IWebsiteRepository websiteRepository)
        {
            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            websiteRepository.CheckArgumentIsNull(nameof(websiteRepository));
            _websiteRepository = websiteRepository;
        }
示例#6
0
        public SubscriberFactory(
            IWebsiteInfo websiteInfo,
            IDateService dateService)
        {
            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;
        }
示例#7
0
        public TagService(
            ITagRepository repository,
            IWebsiteInfo websiteInfo)
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#8
0
        public FileFactory(
            IUserContext userContext,
            IDateService dateService,
            IWebsiteInfo websiteInfo)
        {
            userContext.CheckArgumentIsNull(nameof(userContext));
            _userContext = userContext;

            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#9
0
        public MenuService(
            IWebsiteInfo websiteInfo,
            IMenuRepository menuRepository,
            IWebsiteOptionRepository websiteOptionRepository)
        {
            menuRepository.CheckArgumentIsNull(nameof(menuRepository));
            _menuRepository = menuRepository;

            websiteOptionRepository.CheckArgumentIsNull(nameof(websiteOptionRepository));
            _websiteOptionRepository = websiteOptionRepository;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#10
0
        public CustomerFactory(
            IDateService dateService,
            IWebsiteInfo websiteInfo,
            IShippingAddressFactory shippingAddressFactory)
        {
            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            shippingAddressFactory.CheckArgumentIsNull(nameof(shippingAddressFactory));
            _shippingAddressFactory = shippingAddressFactory;
        }
示例#11
0
        public UserService(
            IUserRepository repository,
            IUserFactory factory,
            IAppUserManager userManager,
            IWebsiteInfo websiteInfo)
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            factory.CheckArgumentIsNull(nameof(factory));
            _factory = factory;

            userManager.CheckArgumentIsNull(nameof(userManager));
            _userManager = userManager;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;
        }
示例#12
0
        protected BehlogController(IWebsiteInfo websiteInfo,
                                   IUserContext userContext,
                                   IOptionsSnapshot <BehlogSetting> setting,
                                   ILogger <Controller> logger
                                   )
        {
            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            userContext.CheckArgumentIsNull(nameof(userContext));
            _userContext = userContext;

            setting.CheckArgumentIsNull(nameof(setting));
            _setting = setting;

            logger.CheckArgumentIsNull(nameof(logger));
            _logger = logger;
        }
示例#13
0
        public PostFileFactory(
            IWebsiteInfo websiteInfo,
            IDateService dateService,
            IUserContext userContext,
            IFileRepository fileRepository)
        {
            websiteInfo.CheckArgumentIsNull();
            _websiteInfo = websiteInfo;

            dateService.CheckArgumentIsNull();
            _dateService = dateService;

            userContext.CheckArgumentIsNull();
            _userContext = userContext;

            fileRepository.CheckArgumentIsNull();
            _fileRepository = fileRepository;
        }
示例#14
0
        public WebsiteOptionService(
            IWebsiteOptionRepository repository,
            IWebsiteInfo websiteInfo,
            IWebsiteOptionFactory factory,
            ILanguageRepository langRepository,
            BehlogSetting setting) { 

            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            factory.CheckArgumentIsNull(nameof(factory));
            _factory = factory;

            langRepository.CheckArgumentIsNull(nameof(langRepository));
            _langRepository = langRepository;

            setting.CheckArgumentIsNull(nameof(setting));
            _setting = setting;
        }
        public WebsiteMenuViewComponent(
            IMenuService menuService,
            IWebsiteInfo websiteInfo,
            WebsiteOptionsProvider websiteOptionsProvider,
            IUserContext userContext,
            ILinkBuilder linkBuilder)
        {
            menuService.CheckArgumentIsNull(nameof(menuService));
            _menuService = menuService;

            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            websiteOptionsProvider.CheckArgumentIsNull(nameof(websiteOptionsProvider));
            _websiteOptionsProvider = websiteOptionsProvider;

            userContext.CheckArgumentIsNull(nameof(userContext));
            _userContext = userContext;

            linkBuilder.CheckArgumentIsNull(nameof(linkBuilder));
            _linkBuilder = linkBuilder;
        }
示例#16
0
        public LoginController(
            ILogger <LoginController> logger,
            IAppSignInManager signInManager,
            IAppUserManager userManager,
            IOptionsSnapshot <BehlogSetting> appSettings,
            IDateService dateService,
            IWebsiteInfo websiteInfo
            )
        {
            logger.CheckArgumentIsNull();
            signInManager.CheckArgumentIsNull();
            userManager.CheckArgumentIsNull();
            appSettings.CheckArgumentIsNull();
            dateService.CheckArgumentIsNull();
            websiteInfo.CheckArgumentIsNull();

            _logger        = logger;
            _signInManager = signInManager;
            _userManager   = userManager;
            _appSettings   = appSettings;
            _dateService   = dateService;
            _websiteInfo   = websiteInfo;
        }
示例#17
0
 public WebsiteOptionFactory(IWebsiteInfo websiteInfo)
 {
     websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
     _websiteInfo = websiteInfo;
 }