public AddDiscountSellEvent(Guid discountId, decimal shopDebitPrice, decimal financialBenefit, OrderBase order, Product product, Customer customer, DiscountSellType discountSellType, Factor factor, Shop shop) { DiscountId = discountId; ShopDebitPrice = shopDebitPrice; FinancialBenefit = financialBenefit; Order = order; Product = product; Customer = customer; DiscountSellType = discountSellType; Factor = factor; Shop = shop; DomainEventDate = DateTime.Now; }
public DiscountSell(Guid id, Product product, Customer customer, DiscountSellType discountSellType, decimal shopDebitPrice, decimal financialBenefit, OrderBase order, Shop shop, Factor factor) { Id = id; Product = product; Customer = customer; DiscountSellType = discountSellType; ShopDebitPrice = shopDebitPrice; FinancialBenefit = financialBenefit; Order = order; Shop = shop; Factor = factor; CreationTime = DateTime.Now; }