Пример #1
0
 public CouponUsageRecordHandler(IPromotionUsageService usageService, IPromotionUsageSearchService promotionUsageSearchService, IPromotionService promotionService)
 {
     _usageService = usageService;
     _promotionUsageSearchService = promotionUsageSearchService;
     EqualityComparer             = AnonymousComparer.Create((PromotionUsage x) => string.Join(":", x.PromotionId, x.CouponCode, x.ObjectId));
     _promotionService            = promotionService;
 }
 public MarketingExportImport(JsonSerializer jsonSerializer, IPromotionSearchService promotionSearchService,
                              IContentPublicationsSearchService contentPublicationsSearchService, IPromotionService promotionService,
                              IDynamicContentService dynamicContentService, ICouponService couponService,
                              IPromotionUsageService promotionUsageService, IContentItemsSearchService contentItemsSearchService,
                              ICouponSearchService couponSearchService, IContentPlacesSearchService contentPlacesSearchService,
                              IPromotionUsageSearchService promotionUsageSearchService, IFolderSearchService folderSearchService)
 {
     _jsonSerializer                   = jsonSerializer;
     _promotionSearchService           = promotionSearchService;
     _contentPublicationsSearchService = contentPublicationsSearchService;
     _promotionService                 = promotionService;
     _dynamicContentService            = dynamicContentService;
     _couponService               = couponService;
     _promotionUsageService       = promotionUsageService;
     _contentItemsSearchService   = contentItemsSearchService;
     _couponSearchService         = couponSearchService;
     _contentPlacesSearchService  = contentPlacesSearchService;
     _promotionUsageSearchService = promotionUsageSearchService;
     _folderSearchService         = folderSearchService;
 }
 public CustomerOrderAggregate(IDynamicPropertyUpdaterService dynamicPropertyUpdaterService,
                               IPromotionUsageSearchService promotionUsageSearchService)
 {
     _dynamicPropertyUpdaterService = dynamicPropertyUpdaterService;
     _promotionUsageSearchService   = promotionUsageSearchService;
 }