Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public ProductPrice(ProductCode productCode, UnitPrice unitPrice)
     : this(productCode, unitPrice, unitPrice.ToBatchPrice())
 {
 }
Exemplo n.º 3
0
 public Product(ProductCode code)
 {
     Code = code ?? throw new ArgumentNullException(nameof(code));
 }