From the course: Advanced ASP.NET Core: Unit Testing
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
ASP.NET Core web API project overview - ASP.NET Core Tutorial
From the course: Advanced ASP.NET Core: Unit Testing
ASP.NET Core web API project overview
- [Instructor] In the last chapter, you learned how to unit test console apps, but .NET Core has some really important frameworks, like Web API and MVC, which are being used by a lot of developers. For the rest of this course, we are going to test two apps built on top of these frameworks, and we are going to start with the Web API. But, before we write any unit testing code, let us go to Visual Studio and have a look at the project that we are going to test throughout this chapter. This is the library app project, and it's a simple app for managing books in a library. Inside the Data folder, you're going to see a folder named models, and inside here, you have the Book.cs file, which is a simple book model. It has the book Id, the Title, Author, and Description. Then, inside the Services folder, we have the IBookService that we are going to use to interact with our data. And this service has four methods. The GetAll…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
ASP.NET Core web API project overview2m 57s
-
(Locked)
Set up web API testing project3m 13s
-
(Locked)
Unit testing HttpGet API endpoint5m 29s
-
(Locked)
Challenge: Test HttpGet API endpoint with id51s
-
(Locked)
Solution: Test HttpGet API endpoint with id7m 35s
-
(Locked)
Unit testing HttpPost API endpoint6m 37s
-
(Locked)
Unit testing HttpDelete API endpoint4m 38s
-
(Locked)
-
-