/// <summary>
        /// Initializes a new instance of the <see cref="AbandonedBasketReportApiController"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        public AbandonedBasketReportApiController(IMerchelloContext merchelloContext)
            : base(merchelloContext)
        {
            _itemCacheService = merchelloContext.Services.ItemCacheService;

            _invoiceService = merchelloContext.Services.InvoiceService;

            _maxDays = MerchelloConfiguration.Current.AnonymousCustomersMaxDays;
            _startDate = DateTime.Today.AddDays(-_maxDays);
            _endDate = DateTime.Today;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="AbandonedBasketReportApiController"/> class.
        /// </summary>
        /// <param name="merchelloContext">
        /// The merchello context.
        /// </param>
        public AbandonedBasketReportApiController(IMerchelloContext merchelloContext)
            : base(merchelloContext)
        {
            _itemCacheService = merchelloContext.Services.ItemCacheService;

            _invoiceService = merchelloContext.Services.InvoiceService;

            _maxDays   = MerchelloConfiguration.Current.AnonymousCustomersMaxDays;
            _startDate = DateTime.Today.AddDays(-_maxDays);
            _endDate   = DateTime.Today;
        }
示例#3
0
 public WarframeMarketAggregatorControllerV1(IItemCacheService itemCacheService)
 {
     _itemCacheService = itemCacheService;
 }
示例#4
0
 public CacheFileManager(IItemCacheService itemCacheService)
 {
     _itemCacheService = itemCacheService;
 }
 public void Initialize()
 {
     PreTestDataWorker.DeleteAllItemCaches();
     _itemCacheService = PreTestDataWorker.ItemCacheService;
     _anonymous        = PreTestDataWorker.MakeExistingAnonymousCustomer();
 }
 public void Initialize()
 {
     PreTestDataWorker.DeleteAllItemCaches();
     _itemCacheService = PreTestDataWorker.ItemCacheService;
     _anonymous = PreTestDataWorker.MakeExistingAnonymousCustomer();
 }