/// <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(); }
/// <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> /// <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; }
public TestOfferManager(IOfferSettingsService offerSettingsService) : base(offerSettingsService) { }
/// <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) { }
/// <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; }