Exemple #1
0
        public string Evaluate(int number)
        {
            string result = new MultipleThreeCondition().Evaluate(number) +
                            new MultipleFiveCondition().Evaluate(number);

            return(result.Equals("fizzbuzz") ?
                   result : number.ToString());
        }
Exemple #2
0
        public string Evaluate(int number)
        {
            string result = new MultipleThreeCondition().Evaluate(number) +
                            new MultipleFiveCondition().Evaluate(number);

            return result.Equals("fizzbuzz") ?
                result : number.ToString();
        }