Esempio n. 1
0
        public static string FizzBuzzForNumber(int number)
        {
            var result = Fizz.FormatNumber(number) + Buzz.FormatNumber(number);

            return(result == string.Empty ? number.ToString() : result);
        }
Esempio n. 2
0
 public FizzBuzz(IExporter exporter)
 {
     this.exporter = exporter;
     this.fizz     = new Fizz(this.exporter);
     this.buzz     = new Buzz(this.exporter);
 }