Exemplo n.º 1
0
 public void AddToAddress(EmailNotificationAddress address)
 {
     if (address.IsValid())
     {
         validatedToAddresses.Add(address);
     }
     else
     {
         throw new ArgumentException();
     }
 }
Exemplo n.º 2
0
 public void UpdateToAddress(int index, EmailNotificationAddress address)
 {
     if (address.IsValid())
     {
         validatedToAddresses[index] = address;
     }
     else
     {
         throw new ArgumentException();
     }
 }
Exemplo n.º 3
0
 public void RemoveBccAddress(EmailNotificationAddress address)
 {
     validatedBccAddresses.Remove(validatedBccAddresses.Find(x => x.Address == address.Address));
 }