public FlashSalePlanAppService( IFlashSalePlanRepository flashSalePlanRepository, IProductAppService productAppService, IDistributedCache <FlashSalePlanPreOrderCacheItem> tokenDistributedCache, IDistributedCache <FlashSalePlanCacheItem, Guid> planDistributedCache, IDistributedEventBus distributedEventBus, IFlashSaleResultRepository flashSaleResultRepository, IAbpDistributedLock distributedLock, IFlashSalePlanHasher flashSalePlanHasher, IFlashSaleInventoryManager flashSaleInventoryManager, IDistributedCache distributedCache, IOptionsMonitor <FlashSalesOptions> optionsMonitor) : base(flashSalePlanRepository) { FlashSalePlanRepository = flashSalePlanRepository; ProductAppService = productAppService; PreOrderDistributedCache = tokenDistributedCache; PlanDistributedCache = planDistributedCache; DistributedEventBus = distributedEventBus; FlashSaleResultRepository = flashSaleResultRepository; DistributedLock = distributedLock; FlashSalePlanHasher = flashSalePlanHasher; FlashSaleInventoryManager = flashSaleInventoryManager; DistributedCache = distributedCache; Options = optionsMonitor.CurrentValue; }
public CreateFlashSaleOrderEventHandler( INewOrderGenerator newOrderGenerator, IObjectMapper objectMapper, IEnumerable <IOrderDiscountProvider> orderDiscountProviders, IOrderRepository orderRepository, IDistributedEventBus distributedEventBus, IProductAppService productAppService, IProductDetailAppService productDetailAppService, IFlashSalePlanHasher flashSalePlanHasher) { NewOrderGenerator = newOrderGenerator; ObjectMapper = objectMapper; OrderDiscountProviders = orderDiscountProviders; OrderRepository = orderRepository; DistributedEventBus = distributedEventBus; ProductAppService = productAppService; ProductDetailAppService = productDetailAppService; FlashSalePlanHasher = flashSalePlanHasher; }
public FlashSalePlanHasherTests() { FlashSalePlanHasher = GetRequiredService <FlashSalePlanHasher>(); }