示例#1
0
        public Bancomat()
        {
            _nextHandler = new ErrorBanknoteHandler(null);
            _nextHandler = new OneDollarHandler(_nextHandler);
            _nextHandler = new TwoDollarHandler(_nextHandler);
            _nextHandler = new FiveDollarHandler(_nextHandler);
            _nextHandler = new TenDollarHandler(_nextHandler);
            _nextHandler = new TwentyDollarHandler(_nextHandler);
            _nextHandler = new FiftyDollarHandler(_nextHandler);
            _nextHandler = new HundredDollarHandler(_nextHandler);
            _nextHandler = new FiveEuroHandler(_nextHandler);

            _nextHandler = new TenEuroHandler(_nextHandler);
            _nextHandler = new TwentyEuroHandler(_nextHandler);
            _nextHandler = new FiftyEuroHandler(_nextHandler);
            _nextHandler = new HundredEuroHandler(_nextHandler);
            _nextHandler = new TwoHundredEuroHandler(_nextHandler);
            _nextHandler = new FiveHundredEuroHandler(_nextHandler);

            _nextHandler = new TenRublesHandler(_nextHandler);
            _nextHandler = new FiftyRublesHandler(_nextHandler);
            _nextHandler = new HundredRublesHandler(_nextHandler);
            _nextHandler = new FiveHundredRublesHandler(_nextHandler);
            _nextHandler = new ThousandRublesHandler(_nextHandler);
            _nextHandler = new FiveThousandRublesHandler(_nextHandler);
        }
示例#2
0
 public HundredDollarHandler(BanknoteHandlerBase nextHandlerBase) : base(nextHandlerBase)
 {
 }
示例#3
0
 public OneDollarHandler(BanknoteHandlerBase nextHandlerBase) : base(nextHandlerBase)
 {
 }
示例#4
0
 public TwentyDollarHandler(BanknoteHandlerBase nextHandlerBase) : base(nextHandlerBase)
 {
 }
示例#5
0
 public ErrorBanknoteHandler(BanknoteHandlerBase nextHandler) : base(nextHandler)
 {
 }
示例#6
0
 protected BanknoteHandlerBase(BanknoteHandlerBase nextHandler)
 {
     _nextHandler = nextHandler;
 }