Exemple #1
0
 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);
 }
Exemple #2
0
 protected BanknoteHandler(BanknoteHandler nextHandler)
 {
     _nextHandler = nextHandler;
 }
Exemple #3
0
 public FiveHundredRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #4
0
 public FiveThousandRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #5
0
 public TenRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #6
0
 public FiftyRubleHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #7
0
 public TenDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #8
0
 public FiftyDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #9
0
 public HundredDollarHandler(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #10
0
 protected DollarHandlerBase(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }
Exemple #11
0
 protected RubleHandlerBase(BanknoteHandler nextHandler) : base(nextHandler)
 {
 }