Beispiel #1
0
 //Counter fizzCounter, Counter buzzCounter, Counter fizzBuzzCounter, WordPrinter fizzPrinter, WordPrinter buzzPrinter, WordPrinter fizzBuzzPrinter)
 public FizzBuzzPrinter(FizzPredicate fizzPredicate, BuzzPredicate buzzPredicate, FizzPrinter fizzPrinter, BuzzPrinter buzzPrinter, FizzAndBuzzPrinter fizzAndBuzzPrinter)
 {
     _fizzPredicate = fizzPredicate;
     _buzzPredicate = buzzPredicate;
     _fizzPrinter = fizzPrinter;
     _buzzPrinter = buzzPrinter;
     _fizzAndBuzzPrinter = fizzAndBuzzPrinter;
 }
Beispiel #2
0
 protected override void Act()
 {
     Sut = new FizzAndBuzzPrinter(WordPrinter);
 }