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 web API project overview - ASP.NET Core Tutorial

From the course: Advanced ASP.NET Core: Unit Testing

Start my 1-month free trial

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…

Contents