Exemple #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;
        }
Exemple #2
0
        public PostVisitFactory(
            IDateService dateService,
            IUserContext userContext)
        {
            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;

            userContext.CheckArgumentIsNull(nameof(userContext));
            _userContext = userContext;
        }
Exemple #3
0
        public CommentService(
            ICommentRepository repository,
            ICommentFactory factory,
            IUserContext userContext)
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

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

            userContext.CheckArgumentIsNull(nameof(userContext));
            _userContext = userContext;
        }
Exemple #4
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;
        }
Exemple #5
0
        public CommentFactory(
            ICommentRepository repository,
            IUserContext userContext,
            IDateService dateService)
        {
            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

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

            dateService.CheckArgumentIsNull(nameof(dateService));
            _dateService = dateService;
        }
Exemple #6
0
        public CategoryFactory(
            IDateService dateService,
            IUserContext userContext,
            ICategoryRepository repo
            )
        {
            dateService.CheckArgumentIsNull();
            _dateService = dateService;

            userContext.CheckArgumentIsNull();
            _userContext = userContext;

            repo.CheckArgumentIsNull();
            _repo = repo;
        }
Exemple #7
0
        public CategoryService(
            ICategoryRepository repo,
            ICategoryFactory factory,
            IUserContext userContext
            )
        {
            repo.CheckArgumentIsNull();
            _repo = repo;

            factory.CheckArgumentIsNull();
            _factory = factory;

            userContext.CheckArgumentIsNull();
            _userContext = userContext;
        }
        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;
        }
Exemple #9
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;
        }
        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;
        }
Exemple #11
0
 public AdminHeadNavViewComponent(IUserContext userContext)
 {
     userContext.CheckArgumentIsNull();
     _userContext = userContext;
 }