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