Articles - Page 2 of 6 - Hosting.Work


How to perform Integration Testing in ASP.NET Core

Updated on: January 23, 2024

Integration Testing ensures that the app components work correctly together. These components could be a controller and Entity Framework Core, integration testing will ensure that they work correctly together and produce a desired result. In this tutorial I will perform Integrations Testing in ASP.NET Core app.

(more…)

How to tests Entity Framework Core Codes

Updated on: January 20, 2024

xUnit can be easily used to test Entity Framework Core codes. This tutorial will tech how to test CRUD operations code created with Entity Framework Core in xUnit. I will write 8 test methods to cover each and every aspect of testing so make sure you cover this whole tutorial till the end.

(more…)

Unit Testing of Web API with xUnit and Moq

Updated on: January 18, 2024

In this tutorial I will show how to perform Unit Tests for Web API methods by using xUnit and Moq. I will be writing complete test method for GET, POST, PUT and DELETE methods of Web API. Make sure you read the complete tutorial so that you do not miss any part. The source codes for this tutorial can be downloaded from the link given at the bottom of this tutorial.

(more…)