Exemple #1
0
        public void AddAuctionTokens(LiquidObject liquidObject, Product product, Bid bid)
        {
            var liquidAuctions = new LiquidAuctions(product, bid);

            liquidObject.Auctions = liquidAuctions;

            _eventPublisher.EntityTokensAdded(bid, liquidAuctions, liquidObject);
        }
        public async Task AddAuctionTokens(LiquidObject liquidObject, Product product, Bid bid)
        {
            var liquidAuctions  = new LiquidAuctions(product, bid);
            var defaultCurrency = await _currencyService.GetPrimaryStoreCurrency();

            liquidAuctions.Price   = _priceFormatter.FormatPrice(bid.Amount, true, defaultCurrency);
            liquidAuctions.EndTime = _dateTimeHelper.ConvertToUserTime(product.AvailableEndDateTimeUtc.Value, DateTimeKind.Utc).ToString();

            liquidObject.Auctions = liquidAuctions;

            await _mediator.EntityTokensAdded(bid, liquidAuctions, liquidObject);
        }