/// <summary> /// Initializes a new instance of the <see cref="InvoiceApiController"/> class. /// </summary> /// <param name="merchelloContext"> /// The merchello context. /// </param> public InvoiceApiController(IMerchelloContext merchelloContext) : base(merchelloContext) { _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService; _invoiceService = merchelloContext.Services.InvoiceService; _noteService = merchelloContext.Services.NoteService; _merchello = new MerchelloHelper(merchelloContext, false); }
/// <summary> /// Initializes a new instance of the <see cref="ExportOrdersReportApiController"/> class. /// </summary> /// <param name="merchelloContext"> /// The merchello context. /// </param> public ExportOrdersReportApiController(IMerchelloContext merchelloContext) : base(merchelloContext) { _invoiceService = merchelloContext.Services.InvoiceService; _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService; _merchello = new MerchelloHelper(merchelloContext.Services); }
/// <summary> /// This is a helper contructor for unit testing /// </summary> internal SettingsApiController(MerchelloContext merchelloContext, UmbracoContext umbracoContext) : base(merchelloContext, umbracoContext) { _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService; }
/// <summary> /// Constructor /// </summary> /// <param name="merchelloContext"></param> public SettingsApiController(MerchelloContext 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); }