コード例 #1
0
 public CommentWebClientService(ICommentDataService commentDataService, List <IBaseBeforeAddingEntityLogic> beforeAdding, List <IBaseBeforeAddingEntityLogic> afterAdding, IUnitOfWork unitOfWork)
 {
     _commentDataService = commentDataService;
     _beforeAdding       = beforeAdding;
     _afterAdding        = afterAdding;
     _unitOfWork         = unitOfWork;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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>();
     });
 }
コード例 #4
0
ファイル: CommentController.cs プロジェクト: DooMachine/fso
 public CommentController(
     ICommentDataService commentDataService,
     ICommentActionService commentActionService,
     ILoggerFactory loggerFactory,
     IBus bus
     )
 {
     _commentDataService   = commentDataService;
     _commentActionService = commentActionService;
     _logger = loggerFactory.CreateLogger <GroupController>();
     _bus    = bus;
 }
コード例 #5
0
 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;
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 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;
 }
コード例 #9
0
        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;
        }
コード例 #10
0
 public CommentService(ICommentDataService commentDataService, IConfigurationService configurationService)
 {
     this.commentDataService = commentDataService;
     this.configurationService = configurationService;
 }
コード例 #11
0
        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;
        }
コード例 #12
0
 public void TestInitialize()
 {
     _SUT = new CommentDataService(TestDataContext);
 }
コード例 #13
0
 public CommentService(ICommentDataService commentDataService, IConfigurationService configurationService)
 {
     this.commentDataService   = commentDataService;
     this.configurationService = configurationService;
 }
コード例 #14
0
 public CommentService(ICommentDataService dataService, IUserService userService)
 {
     this._dataService = dataService;
     this._userService = userService;
 }