This repository contains fleshed out and better organized code for the problems discussed earlier.
Each piece is in it's own function or class and is runnable by the xunit test project.
To run this, assuming .NET Core is installed simply run
dotnet build ./SurgeConsole.Tests/
dotnet test ./SurgeConsole.Tests/