From 8d0cac3413f1f8f7faf9c3db8f7cdfe37fba20a9 Mon Sep 17 00:00:00 2001 From: Kent Tsou <77907592+tsoukent97@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:31:34 +1200 Subject: [PATCH] Update Readme.md --- 2. Backend/Readme.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/2. Backend/Readme.md b/2. Backend/Readme.md index 55d9089..71ddb63 100644 --- a/2. Backend/Readme.md +++ b/2. Backend/Readme.md @@ -38,11 +38,17 @@ You will need to: You will need to: * Demonstrate an understanding of how these middleware via DI (dependency injection) simplifies your code. - + ******************************************************************************************************************************************************* +By configuring swagger it allowed me to implement the NSwag middleware that available for configuration when the application starts running. With the NSwag middleware I was able to use a third-party API that incorporates swagger to generate a client implementation without the use of an existing API. With the middleware configured, I was able to easily add in app.UseOpenApi() and app.UseSwaggerUi3() to run an OpenAPI specification generator and view from a web browser, respectively. In general, the middleware allowed me to just a few simple lines of code to get a lot of work done. + ********************************************************************************************************************************************************* ### Section Three You will need to: * Demonstrate the use of NUnit to unit test your code. * Use at least one substitute to test your code. -* Demonstrate an understanding of why the middleware libraries made your code easier to test. \ No newline at end of file +* Demonstrate an understanding of why the middleware libraries made your code easier to test. + +********************************************************************************************************************************************************* +From my coding experience during this week's phase 2, the middleware libraries made it easier to test because of the swaggerUI web browser. It allowed me to see if my CRUD operations worked or not by simply executing them on the browser. By doing so, I was able to get response types that I implemented and figure out what the issue was from there. +*********************************************************************************************************************************************************