public virtual bool Validate(string banknote) { return(_nextHandler != null && _nextHandler.Validate(banknote)); }
public bool Validate(Banknote banknote) { return(Banknote.Equals(banknote) || _nextHandler != null && _nextHandler.Validate(banknote)); }