public void Initialize()
 {
     _mockRepository = new Mock<IPostCategoryRepository>();
     _mockUnitOfWork = new Mock<IUnitOfWork>();
     _categoryService = new PostCategoryService(_mockRepository.Object, _mockUnitOfWork.Object);
     _lstPostCategory = new List<PostCategory>()
     {
         new PostCategory() { ID=1,Name="DM1",status=true},
         new PostCategory() { ID=2,Name="DM2",status=true},
         new PostCategory() { ID=3,Name="DM3",status=true},
     };
 }
 public PostCategoryController(IErrorService errorService, IPostCategoryService postCategoryService) : base(errorService)
 {
     _postCategoryService = postCategoryService;
 }
        public CreatePostValidator(IPostCategoryService postCategoryService)
        {
            this._postCategoryService = postCategoryService;

            this.ApplyRules();
        }
Beispiel #4
0
 public PostController(IPostService postService, ILogger <PostController> logger, IPostCategoryService postCategoryService)
 {
     _postCategoryService = postCategoryService;
     _postService         = postService;
     _logger = logger;
 }
 public PostController(IPostService postService, IWebHostEnvironment environment, IPostCategoryService postCategoryService, ILikePostService likePostService)
 {
     _postService         = postService;
     _environment         = environment;
     _postCategoryService = postCategoryService;
     _likePostService     = likePostService;
 }
 public AdminController(IUnitOfWork unitOfWork, IPostService pageService, IMappingEngine mappingEngine, IPostCategoryService postCategoryService)
 {
     _unitOfWork          = unitOfWork;
     _postService         = pageService;
     _mappingEngine       = mappingEngine;
     _postCategoryService = postCategoryService;
 }
Beispiel #7
0
 public PostController(IPostService postService, IPostCategoryService postCategoryService, ICommonService commonService)
 {
     this._postService         = postService;
     this._postCategoryService = postCategoryService;
     this._commonService       = commonService;
 }
 public SelectListService(IPostCategoryService postCategoryService, ICommonLanguageService commonLanguageService) : base()
 {
     _postCategoryService   = postCategoryService;
     _commonLanguageService = commonLanguageService;
 }
 public PostCategoriesController(IPostCategoryService postCategoryServices, ILogger <PostCategoriesController> logger)
 {
     this.postCategoryServices = postCategoryServices;
     _logger = logger;
 }
Beispiel #10
0
 public PostController(ILogger <PostController> logger, IPostService postService, IPostCategoryService postCategoryService, UserManager <User> userManager)
 {
     _userManager         = userManager;
     _logger              = logger;
     _postService         = postService;
     _postCategoryService = postCategoryService;
 }
 public PostCategoryDetailController(IPostCategoryService postCategoryService)
 {
     _postCategoryService = postCategoryService;
 }
Beispiel #12
0
 public PostCategoryController(ILogger <PostCategoryController> logger, IPostCategoryService postCategoryService) : base(logger)
 {
     _postCategoryService = postCategoryService;
     _logger = logger;
 }
 public PostCategoryApiController(IPostCategoryService postCategoryService, Logger logger)
 {
     _postCategoryService = postCategoryService;
     _logger = logger;
 }
 public PostCategoriesController(IPostCategoryService postCategoryService, IUnitOfWork unitOfWork, IMapper mapper)
 {
     _postCategoryService = postCategoryService;
     _unitOfWork          = unitOfWork;
     _mapper = mapper;
 }
Beispiel #15
0
 public PostCategoryController(IErrorService errSer, IPostCategoryService postCategoryService) : base(errSer)
 {
     this._postCategoryService = postCategoryService;
 }
 public PostCategoryController(IErrorService errorService, IPostCategoryService postCategoryService, ILogService logService) :
     base(errorService)
 {
     this._postCategoryService = postCategoryService;
     this._logService          = logService;
 }
Beispiel #17
0
 public PostController(IPostCategoryService postCategoryService, IPostService postService, IConfiguration configuration)
 {
     _postCategoryService = postCategoryService;
     _postService         = postService;
     _configuration       = configuration;
 }
 public HomeController(ILogger <PostController> logger, IPostService postService, IPostCategoryService postCategoryService, IEntryService entryService, IAccountService accountService, IRestSharpService restSharpService)
 {
     _logger              = logger;
     _postService         = postService;
     _postCategoryService = postCategoryService;
     _entryService        = entryService;
     _accountService      = accountService;
     _restSharpService    = restSharpService;
 }
Beispiel #19
0
 public HomeController(IUnitOfWork unitOfWork, IPostService postService, IPostCategoryService postCategoryService)
 {
     _unitOfWork          = unitOfWork;
     _postService         = postService;
     _postCategoryService = postCategoryService;
 }
Beispiel #20
0
 public PostCategoryController(ILogError logError, IPostCategoryService postCategoryService) : base(logError)
 {
     _postCategoryService = postCategoryService;
 }
 public CategoriesViewComponent(IPostCategoryService postCategoryService)
 {
     _postCategoryService = postCategoryService;
 }
Beispiel #22
0
 public PostService(IPostDal postDal, IPostCategoryService postCategoryService, ICommentService commentService)
 {
     _postDal             = postDal;
     _postCategoryService = postCategoryService;
     _commentService      = commentService;
 }
Beispiel #23
0
 public PostCategoryController(IPostCategoryService PostCategoryService)
 {
     _PostCategoryService = PostCategoryService;
 }
Beispiel #24
0
 public PostCategoryController(IPostCategoryService postCategoryService, IPostService postService)
 {
     _postCategoryService = postCategoryService;
     _postService         = postService;
 }
Beispiel #25
0
 public PostService(IPostRepository postRepository, IHttpContextAccessor httpContextAccessor, ICommentService commentService, IRatingRepository ratingRepository, IPostCategoryService postCategoryService, IApiService apiService)
 {
     _postRepository      = postRepository;
     _httpContextAccessor = httpContextAccessor;
     _commentService      = commentService;
     _ratingRepository    = ratingRepository;
     _postCategoryService = postCategoryService;
     _apiService          = apiService;
 }
Beispiel #26
0
 public AdminController(IUnitOfWork unitOfWork, IPostCategoryService categoryService, IMappingEngine mappingEngine)
 {
     _unitOfWork      = unitOfWork;
     _categoryService = categoryService;
     _mappingEngine   = mappingEngine;
 }
Beispiel #27
0
 public ReportsController(IReportService reportService, IPostService postService, IPostCategoryService postCategoryService, ImageService image, IWebHostEnvironment webHostEnvironment, UserManager <ApplicationUser> userManager, IConfiguration configuration)
 {
     _reportService       = reportService;
     _postService         = postService;
     _postCategoryService = postCategoryService;
     _image = image;
     _webHostEnvironment = webHostEnvironment;
     _userManager        = userManager;
     _configuration      = configuration;
 }
 public BlogManagerController(IPostService postService, IPostImageService postImageService, IImageService imageService, IPostCategoryService postCategoryService, IUserService userService, IRoleService roleService)
 {
     _postService         = postService;
     _postImageService    = postImageService;
     _imageService        = imageService;
     _postCategoryService = postCategoryService;
     _userService         = userService;
     _roleService         = roleService;
 }
Beispiel #29
0
 public PostCategoryController(IPostCategoryService postCategoryService)
 {
     this.postCategoryService = postCategoryService;
 }
Beispiel #30
0
 public PostCategoriesController(IPostCategoryService postCategoryService)
 {
     _postCategoryService = postCategoryService;
 }
 public PostCategoryController(IErrorService errorService, IPostCategoryService postCategoryService, IMapper mapper)
     : base(errorService, mapper)
 {
     this._postCategoryService = postCategoryService;
 }