Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OfferProviderResolver"/> class.
        /// </summary>
        /// <param name="value">
        /// The value.
        /// </param>
        /// <param name="offerSettingsService">
        /// The offer settings service.
        /// </param>
        public OfferProviderResolver(IEnumerable <Type> value, IOfferSettingsService offerSettingsService)
            : base(value)
        {
            Mandate.ParameterNotNull(offerSettingsService, "offerSettingsService");
            _offerSettingsService = offerSettingsService;

            BuildOfferProviderCache();
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketingApiController"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        /// <param name="umbracoContext">
        /// The umbraco context.
        /// </param>
        internal MarketingApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
            : base(merchelloContext, umbracoContext)
        {
            _offerSettingsService = merchelloContext.Services.OfferSettingsService;

            // TODO - this need to be fixed to make testable
            this._providerResolver = OfferProviderResolver.Current;
        }
Пример #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketingApiController"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        public MarketingApiController(IMerchelloContext merchelloContext)
            : base(merchelloContext)
        {
            _offerSettingsService = merchelloContext.Services.OfferSettingsService;
            this._providerResolver = OfferProviderResolver.Current;

            this._componentResolver = OfferComponentResolver.Current;
        }
Пример #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketingApiController"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        /// <param name="umbracoContext">
        /// The umbraco context.
        /// </param>
        internal MarketingApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
            : base(merchelloContext, umbracoContext)
        {
            _offerSettingsService = merchelloContext.Services.OfferSettingsService;

            // TODO - this need to be fixed to make testable
            this._providerResolver = OfferProviderResolver.Current;
        }
Пример #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketingApiController"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        public MarketingApiController(IMerchelloContext merchelloContext)
            : base(merchelloContext)
        {
            _offerSettingsService  = merchelloContext.Services.OfferSettingsService;
            this._providerResolver = OfferProviderResolver.Current;

            this._componentResolver = OfferComponentResolver.Current;
        }
Пример #6
0
 public TestOfferManager(IOfferSettingsService offerSettingsService)
     : base(offerSettingsService)
 {
 }
Пример #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CouponManager"/> class.
 /// </summary>
 /// <param name="offerSettingsService">
 /// The offer settings service.
 /// </param>
 public CouponManager(IOfferSettingsService offerSettingsService)
     : base(offerSettingsService)
 {
 }
Пример #8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OfferManagerBase{TOffer}"/> class.
        /// </summary>
        /// <param name="offerSettingsService">
        /// The <see cref="IOfferSettingsService"/>.
        /// </param>
        protected OfferManagerBase(IOfferSettingsService offerSettingsService)
        {
            Mandate.ParameterNotNull(offerSettingsService, "offerSettingsService");

            _offerSettingsService = offerSettingsService;
        }