The console application, when running from the command line, is simple, but it is a foundation of well-designed code adhering to the SOLID principles discussed in Chapter 3, Implementing Design Patterns – Basics Part 1. When run, the application provides a simple greeting and displays a help message, including the command's supports and examples:
The application then loops through the commands until a quit command is received. The following screenshot illustrates its functionality:
This was not the most impressive of console applications, but it served to illustrated many principles and patterns.