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