Beispiel #1
0
 public FizzBuzzTest()
 {
     _serviceType01     = FizzBuzzServiceFactory.CreateGenerateService(FizzBuzzType.One);
     _serviceType02     = FizzBuzzServiceFactory.CreateGenerateService(FizzBuzzType.Two);
     _serviceType03     = FizzBuzzServiceFactory.CreateGenerateService(FizzBuzzType.Three);
     _serviceTYpe01List = FizzBuzzServiceFactory.CreateGenerateListService(FizzBuzzType.One);
     _serviceTYpe02List = FizzBuzzServiceFactory.CreateGenerateListService(FizzBuzzType.Two);
     _serviceTYpe03List = FizzBuzzServiceFactory.CreateGenerateListService(FizzBuzzType.Three);
 }
Beispiel #2
0
        public IFizzBuzz Generate(int number)
        {
            var service = FizzBuzzServiceFactory.CreateGenerateService(FizzBuzzType.One);

            return(service.Generate(number));
        }