public ATM() { _handler = new TenRubleHandler(_handler); _handler = new FiftyRubleHandler(_handler); _handler = new HundredRubleHandler(_handler); _handler = new TwoHundredRubleHandler(_handler); _handler = new FiveHundredRubleHandler(_handler); _handler = new ThousandRubleHandler(_handler); _handler = new TwoThousandRubleHandler(_handler); _handler = new OneDollarHandler(_handler); _handler = new TwoDollarHandler(_handler); _handler = new FiveThousandRubleHandler(_handler); _handler = new TenDollarHandler(_handler); _handler = new TwentyDollarHandler(_handler); _handler = new FiftyDollarHandler(_handler); _handler = new HundredDollarHandler(_handler); }
protected BanknoteHandler(BanknoteHandler nextHandler) { _nextHandler = nextHandler; }
public FiveHundredRubleHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public FiveThousandRubleHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public TenRubleHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public FiftyRubleHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public TenDollarHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public FiftyDollarHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
public HundredDollarHandler(BanknoteHandler nextHandler) : base(nextHandler) { }
protected DollarHandlerBase(BanknoteHandler nextHandler) : base(nextHandler) { }
protected RubleHandlerBase(BanknoteHandler nextHandler) : base(nextHandler) { }