Ejemplo n.º 1
0
 public Account(AccountId id, ClientId clientId)
 {
     if (clientId == null)
         throw new ArgumentException("You must provide client");
     AccountNo = id;
     ClientId = clientId;
 }
Ejemplo n.º 2
0
 public bool Equals(AccountId other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return other.Id == Id;
 }