I spent my second week working on the coding side of the Retail Business which was briefed to me last week.
I started off the week by setting up my workspace, SQL workspace and Source Tree. Moreover, I concentrated on learning how a test case is executed for an API, for example; how handlers work , repositories, entities, and also how to debug a test case.
Next, I was given my first task to create an API with simple entities and test cases. I kicked off the API by creating entities with relevant fields and also their config file which helps mapping entities and their properties and relationships to a relational database. Once the fundamentals of the entities were created, I shifted my focus towards the commands and query aspect. Started it by defining repositories, updating the Database context file and adding dependency injection.
Furthermore, I completed the Create and Delete commands with successful testing and made relevant commits. Moreover, I finished the Get query with test cases which was not until I had to fix some bugs in my Data Transfer Object (DTO) file. Lastly, I finalized data testing which tests the logic of your repository and started building logic for the Update command.
