Articles - Page 3 of 5 - Hosting.Work


How to perform Unit Testing with xUnit in ASP.NET Core

Updated on: August 18, 2021

xUnit is a Free and Open Source testing package for .NET. It can be used to write Unit Testing codes for C# methods, Classes, Controller, API and others. In this tutorial I will teach how to use xUnit in writing Test Cases for an ASP.NET Core application.

The source codes of this tutorial can be downloaded from my GitHub Repository.

(more…)

Onion Architecture in ASP.NET Core with CQRS : Detailed & Illustrated

Updated on: June 22, 2021

Computer Engineer Jeffrey Palermo created Onion Architecture for creating app which are highly maintainable and loosely coupled. This architecture somewhat resembles the layers which can be seen on cutting an onion vegetable. You can separate the layers of onion very easily and eat them in your salads. In the same way the layers of Onion Architecture are separatable as they are loosely coupled, and this gives a highly testable architecture.

(more…)

Implementing ASP.NET Core CRUD Operation with CQRS and MediatR Patterns

Updated on: December 7, 2023

In computer programming we generally use a design pattern which will help us write codes to solve problems efficiently. There are many design patterns and one of the most commonly used once are CQRS and Mediator Patterns. The CQRS and Mediator patterns will work together to create a loosely coupled object what will not call one another explicitly.

Download the complete source code of this tutorial from my GitHub Repository.

(more…)