filmov
tv
WEB API, IMAGES, FILESYSTEM | ASP.NET Core 3.1 - #7 : How To Unit Test Web API Controllers - PART 2

Показать описание
This video is a continuation of the previous video on how to write unit tests for a web api project. We continue by writing unit tests for the in memory cache. We explore the reason why we set up the variables before every test method and understand how they are related to the api controller's constructor. We then exam test results within the test explorer. After writing memory cache tests we write the first unit test for the images controller. We also learn how to write unit tests for IActionResult or Action Result types. We also learn how to enable photos to be included in the test host by changing the build resource properties of the images.
🧡🧡 If you find the video helpful give it a LIKE and SUBSCRIBE. 🧡🧡
#UnitTestTutorial #Asp.NetCore3.1Tutorial #WebApiUnitTest #.NetCore3.1WebApiTutorial
PlayList:
Time Stamps:
00:00 Cache Key Tests
02:30 Test Method Variables
07:58 Images Controller Tests
11:55 Cars Controller Tests
Help:
Any code queries or need help with code? Paste your code snippet -
Source code: 💎💎
Help support the channel and get the source code -
Resources:
Music:
Youtube Audio Library
🧡🧡 If you find the video helpful give it a LIKE and SUBSCRIBE. 🧡🧡
#UnitTestTutorial #Asp.NetCore3.1Tutorial #WebApiUnitTest #.NetCore3.1WebApiTutorial
PlayList:
Time Stamps:
00:00 Cache Key Tests
02:30 Test Method Variables
07:58 Images Controller Tests
11:55 Cars Controller Tests
Help:
Any code queries or need help with code? Paste your code snippet -
Source code: 💎💎
Help support the channel and get the source code -
Resources:
Music:
Youtube Audio Library