/// <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;
        }
        /// <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;
        }
        /// <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;
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OfferComponentResolver"/> class.
 /// </summary>
 /// <param name="values">
 /// The values.
 /// </param>
 /// <param name="offerProviderResolver">
 /// The offer provider resolver.
 /// </param>
 internal OfferComponentResolver(IEnumerable <Type> values, IOfferProviderResolver offerProviderResolver)
 {
     Mandate.ParameterNotNull(offerProviderResolver, "offerProviderResolver");
     _instanceTypes         = values.ToList();
     _offerProviderResolver = offerProviderResolver;
 }
        /// <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;
        }