예제 #1
0
 public void ChangeName(CustomerNameValue customerName)
 {
     CustomerNameValue = customerName ?? throw new ArgumentNullException(nameof(customerName));
     CustomerNameValue = customerName;
 }
예제 #2
0
 public Customer(CustomerNameValue cnv, EMailValue ev)
 {
     CustomerNameValue = cnv ?? throw new ArgumentNullException(nameof(cnv));
     EMailValue        = ev ?? throw new ArgumentNullException(nameof(ev));
 }