示例#1
0
 public void UpdateBuyNowPrice(BuyNowPrice newPrice)
 {
     if (newPrice == 0m && BuyNowOnly)
     {
         throw new DomainException("Cannot set buy now price to 0 if auction is buyNowOnly");
     }
     if (newPrice.Equals(BuyNowPrice))
     {
         return;
     }
     BuyNowPrice = newPrice;
     AddUpdateEvent(new AuctionBuyNowPriceChanged(AggregateId, newPrice, Owner));
 }
示例#2
0
 public Builder SetBuyNow(BuyNowPrice buyNowPrice)
 {
     args.BuyNowPrice = buyNowPrice;
     return(this);
 }