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