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