Exemple #1
0
 public ProductPrice(ProductCode productCode, UnitPrice unitPrice, BatchPrice batchPrice)
 {
     ProductCode = productCode ?? throw new ArgumentNullException(nameof(productCode));
     UnitPrice   = unitPrice ?? throw new ArgumentNullException(nameof(unitPrice));
     BatchPrice  = batchPrice ?? throw new ArgumentNullException(nameof(batchPrice));
 }
Exemple #2
0
 public ProductPrice(ProductCode productCode, UnitPrice unitPrice)
     : this(productCode, unitPrice, unitPrice.ToBatchPrice())
 {
 }
Exemple #3
0
 public Product(ProductCode code)
 {
     Code = code ?? throw new ArgumentNullException(nameof(code));
 }