예제 #1
0
        public CategoryViewModelProvider(
            LanguageViewModelProvider languageViewModelProvider,
            ICategoryService categoryService,
            IPostTypeService postTypeService
            )
        {
            languageViewModelProvider.CheckArgumentIsNull();
            _languageViewModelProvider = languageViewModelProvider;

            categoryService.CheckArgumentIsNull();
            _categoryService = categoryService;

            postTypeService.CheckArgumentIsNull();
            _postTypeService = postTypeService;
        }
예제 #2
0
        public PostViewModelProvider(
            LanguageViewModelProvider languageProvider,
            IPostTypeService postTypeService,
            IPostService postService,
            CategoryViewModelProvider categoryProvider,
            ITagService tagService
            )
        {
            postTypeService.CheckArgumentIsNull();
            _postTypeService = postTypeService;

            languageProvider.CheckArgumentIsNull();
            _languageViewModelProvider = languageProvider;

            postService.CheckArgumentIsNull();
            _postService = postService;

            categoryProvider.CheckArgumentIsNull();
            _categoryProvider = categoryProvider;

            tagService.CheckArgumentIsNull(nameof(tagService));
            _tagService = tagService;
        }
예제 #3
0
        public CategoryController(
            CategoryViewModelProvider viewModelProvider,
            ICategoryService categoryService,
            LanguageViewModelProvider languageProvider,
            IPostTypeService postTypeService,
            ILanguageService languageService
            )
        {
            viewModelProvider.CheckArgumentIsNull();
            _viewModelProvider = viewModelProvider;

            categoryService.CheckArgumentIsNull();
            _categoryService = categoryService;

            languageProvider.CheckArgumentIsNull();
            _languageProvider = languageProvider;

            postTypeService.CheckArgumentIsNull();
            _postTypeService = postTypeService;

            languageService.CheckArgumentIsNull();
            _languageService = languageService;
        }