Beispiel #1
0
        public void Greet(string name)
        {
            var message = _nameValidator.IsValid(name)
                ? $"Hello World, {name}!"
                : "I don't know you, stranger.";

            _inOut.WriteToOutput(message);
        }