// Remove when cleaning up - just looking around
 private void CheckNewPromotions(ShirtVariation currentContent)
 {
     //ServiceLocator.Current.GetInstance<IPromotionEngine>().Run(OrderGroup);
     PromotionProcessorResolver pr = ServiceLocator.Current.GetInstance <PromotionProcessorResolver>();
     IContentLoader             cl = ServiceLocator.Current.GetInstance <IContentLoader>();
     CampaignInfoExtractor      ci = ServiceLocator.Current.GetInstance <CampaignInfoExtractor>();
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketContentLoader" /> class.
        /// </summary>
        /// <param name="contentLoader">Service used to load content data.</param>
        /// <param name="campaignInfoExtractor">Used to extract informations about campaigns and promotions.</param>
        /// <param name="promotionProcessorResolver">The promotion processor resolver.</param>
        public MarketContentLoader(
            IContentLoader contentLoader,
            CampaignInfoExtractor campaignInfoExtractor,
            PromotionProcessorResolver promotionProcessorResolver)
        {
            _contentLoader = contentLoader;

            _campaignInfoExtractor      = campaignInfoExtractor;
            _promotionProcessorResolver = promotionProcessorResolver;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketContentLoader" /> class.
        /// </summary>
        /// <param name="contentLoader">Service used to load content data.</param>
        /// <param name="campaignInfoExtractor">Used to extract informations about campaigns and promotions.</param>
        /// <param name="promotionProcessorResolver">The promotion processor resolver.</param>
        public MarketContentLoader(
            IContentLoader contentLoader,
            CampaignInfoExtractor campaignInfoExtractor,
            PromotionProcessorResolver promotionProcessorResolver)
        {
            _contentLoader = contentLoader;

            _campaignInfoExtractor = campaignInfoExtractor;
            _promotionProcessorResolver = promotionProcessorResolver;
        }