Exemplo n.º 1
0
        public List <string> WriteFizzBuzzUpTo(int NumberUpTo, FizzBuzzFunctions functions)
        {
            List <string> numToPrint = new List <string>();

            for (int i = 1; i <= NumberUpTo; i++)
            {
                numToPrint.Add(functions.IsNumberFizzBuzz(i));
            }
            return(numToPrint);
        }
Exemplo n.º 2
0
 public FizzBuzz(FizzBuzzIo fizzBuzzIo, FizzBuzzFunctions fizzBuzzFunctions)
 {
     _fizzBuzzIo        = fizzBuzzIo;
     _fizzBuzzFunctions = fizzBuzzFunctions;
 }