public void ChangeName(CustomerNameValue customerName) { CustomerNameValue = customerName ?? throw new ArgumentNullException(nameof(customerName)); CustomerNameValue = customerName; }
public Customer(CustomerNameValue cnv, EMailValue ev) { CustomerNameValue = cnv ?? throw new ArgumentNullException(nameof(cnv)); EMailValue = ev ?? throw new ArgumentNullException(nameof(ev)); }