Пример #1
0
 protected BaseAction(IFizzBuzzAction nextAction, int value, Result result)
 {
     _nextAction = nextAction;
     _value      = value;
     _result     = result;
 }
Пример #2
0
 public FizzBuzzAction(IFizzBuzzAction nextAction) : base(nextAction, ThreeAndFive, new FizzBuzzResult())
 {
 }
Пример #3
0
 public FizzAction(IFizzBuzzAction nextAction) : base(nextAction, FizzValue, new FizzResult())
 {
 }
Пример #4
0
 private FizzBuzz(IFizzBuzzAction action) => _action = action;