patrickbucher / SeparationOfConcerns

Exercises for the "Separation of Concerns" (SoC) Design Principle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Separation of Concerns

This project demonstrates the concept of Separation of Concerns with code that is totally devoid of it. The examples are:

  1. Multiplication Table (SeparationOfConcerns/MultiplicationTable.cs)
  2. Prime Factors (SeparationOfConcerns/PrimeFactors.cs)
  3. 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.

About

Exercises for the "Separation of Concerns" (SoC) Design Principle


Languages

Language:C# 100.0%