public CommentWebClientService(ICommentDataService commentDataService, List <IBaseBeforeAddingEntityLogic> beforeAdding, List <IBaseBeforeAddingEntityLogic> afterAdding, IUnitOfWork unitOfWork) { _commentDataService = commentDataService; _beforeAdding = beforeAdding; _afterAdding = afterAdding; _unitOfWork = unitOfWork; }
public PostDataService( IEntityContext context, IPostCacheService postCacheService, IUserLikesDataService userLikesDataService, IUserLikeCacheService userLikesCacheService, IUserFollowCacheService userFollowCacheService, IGroupDataService groupDataService, IGroupCacheService groupCacheService, IReviewCacheService reviewCacheService, IReviewDataService reviewDataService, ICommentCacheService commentCacheService, ICommentDataService commentDataService, IOptions <UserProfileImageSettings> userProfileImageSettings ) { _context = context; _postCacheService = postCacheService; _userLikesCacheService = userLikesCacheService; _userLikesDataService = userLikesDataService; _userFollowCacheService = userFollowCacheService; _groupDataService = groupDataService; _groupCacheService = groupCacheService; _reviewCacheService = reviewCacheService; _reviewDataService = reviewDataService; _commentCacheService = commentCacheService; _commentDataService = commentDataService; _userProfileImageSettings = userProfileImageSettings.Value; }
public CommentController(ICommentDataService dataService, IUserDataService dataservice2) { _dataService = dataService; _dataService2 = dataservice2; //Mapper.CreateMap<DomainModel.Post, Models.PostModel>(); Mapper.Initialize(cfg => { //cfg.CreateMap<Source, Dest>(); cfg.CreateMap <Comment, CommentListModel>(); cfg.CreateMap <Comment, CommentModel>(); }); }
public CommentController( ICommentDataService commentDataService, ICommentActionService commentActionService, ILoggerFactory loggerFactory, IBus bus ) { _commentDataService = commentDataService; _commentActionService = commentActionService; _logger = loggerFactory.CreateLogger <GroupController>(); _bus = bus; }
public CommentController(ICommentDataService commentDataService, ICommentRepository commentRepo, IResourceRepository resourceRepo, ICustomerRepository customerRepo, IPromotionRepository promotionRepo, IProductRepository productRepo) { _commentDataService = commentDataService; _commentRepo = commentRepo; _customerRepo = customerRepo; _resourceRepo = resourceRepo; _productRepo = productRepo; _promotionRepo = promotionRepo; }
public CommentService(List <IBaseBeforeAddingEntityLogic> baseBeforeAddingEntityLogics, List <BaseAfterAddingEntityLogic> baseAfterAddingEntityLogics, List <IBaseAfterUpdatingEntityLogic> baseAfterUpdateEntityLogics, List <IBaseBeforeUpdatingEntityLogic> baseBeforeUpdateEntityLogics, List <IBaseBeforeDeleteEntityLogic> baseBeforeDeleteEntityLogics, List <BaseAfterDeleteEntityLogic> baseAfterDeleteEntityLogics, IIdentityManager identityManager, IRestrictedItemAccessManager accessManager, IDataService <DomainClasses.Entities.Comment, Guid> dataSrv, ICommentDataService commentData, IUnitOfWork unitOfWork, IEntityDataService entityDataService, IPageDataService pageDataService) : base(baseBeforeAddingEntityLogics, baseAfterAddingEntityLogics, baseAfterUpdateEntityLogics, baseBeforeUpdateEntityLogics, baseBeforeDeleteEntityLogics, baseAfterDeleteEntityLogics, identityManager, accessManager, dataSrv) { _commentData = commentData; _unitOfWork = unitOfWork; _entityDataService = entityDataService; _pageDataService = pageDataService; }
public ReviewDataService( IEntityContext context, IReviewCacheService reviewCacheService, IUserLikeCacheService userLikeCacheService, ICommentCacheService commentCacheService, ICommentDataService commentDataService, IUserLikesDataService userLikeDataService ) { _context = context; _dbEntitySet = _context.Set <Review>(); _userEntitySet = _context.Set <UserInfo>(); _userReviewLikeSet = _context.SetChild <UserReview>(); _commentSet = _context.Set <Comment>(); _reviewCacheService = reviewCacheService; _userLikeCacheService = userLikeCacheService; _commentCacheService = commentCacheService; _commentDataService = commentDataService; _userLikeDataService = userLikeDataService; }
private ICommentDataService _commentDataService;//= new PromotionDataService(new PromotionRepository(), new FavoriteRepository(), new ShareRepository(), new CouponDataService(new CouponRepository(), new TimeSeedRepository(), new PromotionRepository(), new StoreRepository()), new CustomerRepository(), new ResourceService(new ResourceRepository())); public TestCommentController(ICommentDataService commentDataService) { this._commentDataService = commentDataService; }
public CommentService(ICommentDataService commentDataService, IConfigurationService configurationService) { this.commentDataService = commentDataService; this.configurationService = configurationService; }
public void TestInitialize() { _SUT = new CommentDataService(TestDataContext); }
public CommentService(ICommentDataService dataService, IUserService userService) { this._dataService = dataService; this._userService = userService; }