Beispiel #1
0
 public GiftCard(Guid id, string providerName, ExpirationDate expiryDate)
 {
     if (id == Guid.Empty)
     {
         throw new ArgumentNullException(nameof(id));
     }
     Id           = id;
     ProviderName = providerName ?? throw new ArgumentNullException(nameof(providerName));
     ExpiryDate   = expiryDate;
 }
Beispiel #2
0
 public void SetExpirationDate(ExpirationDate date)
 {
     ExpiryDate = date;
 }