Example #1
0
 public StockItem(Guid id, ProductType productType, int quantity, double price, StockOwner owner, Guid advertId)
 {
     Id          = id;
     ProductType = productType;
     Quantity    = quantity;
     Price       = price;
     Owner       = owner;
     AdvertId    = advertId;
 }
Example #2
0
 public StockItemCreatedEvent(
     Guid id,
     ProductType productType,
     int quantity,
     double price,
     StockOwner owner,
     Guid advertId
     ) : base(id)
 {
     ProductType = productType;
     Quantity    = quantity;
     Price       = price;
     StockOwner  = owner;
     AdvertId    = advertId;
     Status      = StockItemStatus.ForSale;
 }