Ejemplo n.º 1
0
 public FizzBuzz(NumericPrinter numericPrinter, FizzBuzzPrinter fizzBuzzPrinter, FizzBuzzPredicate fizzBuzzPredicate, Counter counter)
 {
     _numericPrinter = numericPrinter;
     _fizzBuzzPrinter = fizzBuzzPrinter;
     _fizzBuzzPredicate = fizzBuzzPredicate;
     _counter = counter;
 }
Ejemplo n.º 2
0
 public virtual string Print(Counter counter)
 {
     return Convert.ToString(counter.Value);
 }