Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SettingsApiController"/> class. 
 /// This is a helper contructor for unit testing
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello Context.
 /// </param>
 /// <param name="umbracoContext">
 /// The umbraco Context.
 /// </param>
 internal SettingsApiController(MerchelloContext merchelloContext, UmbracoContext umbracoContext)
     : base(merchelloContext, umbracoContext)
 {
     _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SettingsApiController"/> class. 
 /// Constructor
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello context
 /// </param>
 public SettingsApiController(MerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SettingsApiController"/> class.
 /// This is a helper contructor for unit testing
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello Context.
 /// </param>
 /// <param name="umbracoContext">
 /// The umbraco Context.
 /// </param>
 internal SettingsApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
     : base(merchelloContext, umbracoContext)
 {
     _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SettingsApiController"/> class.
 /// Constructor
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello context
 /// </param>
 public SettingsApiController(IMerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SalesOverTimeReportApiController"/> class.
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello context.
 /// </param>
 public SalesOverTimeReportApiController(IMerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService;
     _merchello           = new MerchelloHelper(merchelloContext.Services);
 }
Esempio n. 6
0
 public virtual IEnumerable <IProvince> PostGetRegionsForCountry(string countryCode)
 {
     return(StoreSettingService.GetProvincesByCountryCode(countryCode));
 }