Esempio n. 1
0
 protected IntegerToStringStrategy(int value, int divisor, Text.Text parsedValue, IIntegerToStringStrategy nextStrategy)
 {
     _value        = value;
     _divisor      = divisor;
     _parsedValue  = parsedValue;
     _nextStrategy = nextStrategy;
 }
Esempio n. 2
0
 public BuzzStrategy(int value, IIntegerToStringStrategy nextStrategy)
 {
     _value        = value;
     _nextStrategy = nextStrategy;
 }
 public Integer(IIntegerToStringStrategy strategyChain) => _strategyChain = strategyChain;
Esempio n. 4
0
 public FizzStrategy(int value, IIntegerToStringStrategy nextStrategy) : base(value, 3, new Fizz(), nextStrategy)
 {
 }
Esempio n. 5
0
 public BuzzStrategy(int value, IIntegerToStringStrategy nextStrategy) : base(value, 5, new Buzz(), nextStrategy)
 {
 }
Esempio n. 6
0
 public IntegerToStringStrategyChain(IIntegerToStringStrategy strategies) => _strategies = strategies;