Beispiel #1
0
        public string Process(string inputString, int numberOfLetterToAnalyse)
        {
            var strategy  = _countingAlgorithmFactory.CreateAStrategy(numberOfLetterToAnalyse);
            var numberOfA = strategy.CountOccurrences(inputString, numberOfLetterToAnalyse);
            var fizzBuzz  = _fizzBuzzChainFactory.Create();

            return(fizzBuzz.DisplayMessage(numberOfA));
        }
Beispiel #2
0
        public void CallingCreate_ReturnsExpectedBaseType()
        {
            var result = _factory.Create();

            Assert.AreEqual(typeof(FizzBuzzChainBase), result.GetType().BaseType);
        }