Beispiel #1
0
 public Bancomat()
 {
     _handler = new FiftyRubleHandler(null);
     _handler = new HundredRubleHandler(_handler);
     _handler = new FiveHundredRubleHandler(_handler);
     _handler = new TenDollarHandler(_handler);
     _handler = new FiftyDollarHandler(_handler);
     _handler = new HundredDollarHandler(_handler);
 }
Beispiel #2
0
 protected BanknoteHandler(BanknoteHandler nextHandler)
 {
     _nextHandler = nextHandler;
 }
Beispiel #3
0
 public HundredRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #4
0
 public FiftyRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #5
0
 protected RubleHandlerBase(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #6
0
 public TenDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #7
0
 public FiftyDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #8
0
 public HundredDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Beispiel #9
0
 protected DollarHandlerBase(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }