コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="merchelloContext"></param>
 public SettingsApiController(MerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _storeSettingService = MerchelloContext.Services.StoreSettingService as StoreSettingService;
 }
コード例 #5
0
 /// <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);
 }