The objective of this assessment is to solidify the programming concepts covered during team-shared review sessions. The project consists of three parts: a minimal API, a console application and a shared model.
- API Project: This project should not be modified in any way. It is a minimal API application.
- Console Project: The console project is written in a single class named Program and requires improvement from the developer.
- Shared Projects: Contains the models shared between Console and API.
To simplify the use of the tool, a PowerShell script named publish.api.ps1 has been created. This script generates a folder named dist.api containing the executable required to run the API locally.
The entire assessment focuses on the Console project. During the assessment, specific changes will be requested in the project, each designed to reinforce a particular topic. The requested changes will provide an opportunity to demonstrate the skills and knowledge acquired during the team-shared review sessions.
The changes should follow a predefined commit flow, as indicated below:
- Apply the Single Responsibility Principle of OOP: This change involves consolidating the creation of instances of business logic classes within the Program class. For example:
var reader = new Reader(); var writer = new Writer();
- Transform the Console model from anemic to a rich model without using records.
- Implement the rich model using records.
- Add an Inversion of Control (IoC) system.
- Create typed clients using the appropriate extension method.
- Apply the options pattern using the appropriate extension method.
- Make the code async when it is possible
- During retrieve phase, use yield instead of materialized collection
These points are left open to allow the developer to fully express their creativity and competence in applying them.
Good job to everyone!