This project demonstrates the concept of Separation of Concerns with code that is totally devoid of it. The examples are:
- Multiplication Table
(
SeparationOfConcerns/MultiplicationTable.cs
) - Prime Factors
(
SeparationOfConcerns/PrimeFactors.cs
) - Monty Hall Problem
(
SeparationOfConcerns/MontyHall.cs
)
The code is run by SeparationOfConcerns.Demo/Program.cs
:
$ dotnet run --project SeparationOfConcerns.Demo
There are no tests in SeparationOfConcerns.Test
yet, because they'd be too
tedious to write due to the lack of Separation of Concerns in the code.
Your task is to clean up the mess, and then to write tests for the improved code.