示例#1
0
 public CreateAuctionCommand(BuyNowPrice buyNowPrice, Product product,
                             AuctionDate startDate, AuctionDate endDate, List <string> category,
                             Tag[] tags, AuctionName name, bool?buyNowOnly)
 {
     BuyNowPrice = buyNowPrice;
     Product     = product;
     StartDate   = startDate;
     EndDate     = endDate;
     Category    = category;
     Tags        = tags;
     Name        = name;
     BuyNowOnly  = buyNowOnly;
 }
示例#2
0
 public UpdateAuctionCommand(Guid auctionId,
                             BuyNowPrice buyNowPrice, AuctionDate endDate,
                             List <string> category, string description,
                             Tag[] tags, AuctionName name)
 {
     if (auctionId.Equals(Guid.Empty))
     {
         throw new InvalidCommandException($"Invalid field AuctionId = {auctionId}");
     }
     AuctionId   = auctionId;
     BuyNowPrice = buyNowPrice;
     EndDate     = endDate;
     Category    = category;
     Description = description;
     Tags        = tags;
     Name        = name;
 }
 public AuctionBuyNowPriceChanged(Guid auctionId, BuyNowPrice buyNowPrice, UserIdentity owner) : base(EventNames.AuctionBuyNowPriceChanged)
 {
     AuctionId   = auctionId;
     BuyNowPrice = buyNowPrice;
     Owner       = owner;
 }