Mr. Peter has given me a new assignment for the third week of my internship: creating a new entity for the system. The entity includes functions such as create a new entity, edit or delete an existing entity, and list out the entity list. Firstly, sir has instructed me to use the Microsoft Visio tool to develop the table for the entity. Microsoft Visio is a diagramming and graphics application. The client properties, such as names, addresses, and other details are included in the table I created.
After developing the table in Microsoft Visio, Mr. Peter asked me to write the code for the entity that included the feature mentioned above. We have used the domain driven design approach to develop the system. The domain driven design approach is a software design approach, which focuses on modeling software to match a domain according to input from that domain’s experts. So, I need to separate the code for the SQL portion from the domain part. Next, I started to develop the first feature of the entity, which is the feature of getting the full list. Since the feature of getting the full list is a query, I put this feature inside the query folder of the feature folder. This is in line with the CQRS design which is to divide a system’s command portion from its query portion.
In addition, I created the API controller for the entity object so that the API could utilize the features I had created for the entity. I also write the testing code for the API controller in order to test whether the API will function correctly when I use it. During testing one of the features in the entity, I faced an error in which I couldn’t retrieve the correct status code of HTTP. Following Mr. Peter’s advice, I utilized Visual Studio’s debug button to identify my mistake. Debug is a feature that can detect the errors in computer programming and software development. I discovered that there was a mistake I had made when developing this functionality for a different project after activating the debugging button. After fixing it right away, I discovered that the test had succeeded.
Later, I continued to develop other features inside the entity. In conclusion, this week of internship was quite hectic for me since I had the chance of trying to create the first feature for the web-based system.
