Beispiel #1
0
        static void Main(string[] args)
        {
            FizzBuzzService fizzBuzzService = new FizzBuzzService();

            foreach (var result in fizzBuzzService.GetFizzBuzz(100))
            {
                Console.WriteLine(result);
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //Create FizzBuzzService as IFizzBuzzService
            IFizzBuzzService fizzbuzzervice = new FizzBuzzService();

            //Loop through resultlist
            foreach (var item in fizzbuzzervice.GetFizzBuzz(100))
            {
                Console.WriteLine(item);
            }
            Console.ReadLine();
        }