public static string FizzBuzzForNumber(int number) { var result = Fizz.FormatNumber(number) + Buzz.FormatNumber(number); return(result == string.Empty ? number.ToString() : result); }
public FizzBuzz(IExporter exporter) { this.exporter = exporter; this.fizz = new Fizz(this.exporter); this.buzz = new Buzz(this.exporter); }