Differences Between NUnit, xUnit and MSTest
A testing framework provides us with an approach to automating the validation of the functionality and performance of our code. In this article, we will look at the three major testing frameworks (NUnit, xUnit, and MSTest) that are available for a .NET project. ...
Is a Path a File or a Directory in C#
In this article, we explore how to determine if a path is a file or a directory in C#. We have two main approaches to determining...
Deep Dive into Conversions in C# With the Convert Class
As a statically typed language, C# imposes some limitations on variable types. After we declare a variable of a given type, we can only assign values of that type to it. For example, if we declare a variable of a textual type, we cannot assign values of a numerical...
How to Initialize Parameters of a Record in C#
In this article, we are going to learn how to initialize the parameters of a record type in C#. For an overview of what records are, have a look at this article. AI can be scary, but until it takes over the...
Join MongoDB Collections With .NET and Aggregation Pipeline
In this article, we are going to discuss how we can join MongoDB collections with .NET using an aggregation pipeline. Since we discussed MongoDB integration in a previous article, we'll now focus on building the aggregation pipeline in .NET. If you want to learn how to use Identity...
How to Register Multiple Implementations of the Same Interface in ASP.NET Core
A key aspect of mastering ASP.NET Core is understanding how to effectively register and use multiple implementations of the same interface. In this article, we delve into the nuances of this approach, guiding us through the process from concept to implementation. [sc...
Execute JavaScript Using Selenium WebDriver in C#
As developers, we always look for ways to make our work easier so we can focus on more exciting projects or learn new things. A big part of this is finding ways to quickly test our work, like new features or bug fixes, to ensure everything runs smoothly. This is where...
Introduction to Autofac FakeItEasy Package
In this article, we'll learn about the Autofac FakeItEasy Package, its features, benefits, and how to get started. We'll learn how to use the package to create unit tests for our applications. [sc name="github"...
Querying MongoDB With ObjectId in C#
In this article, we will look at how to retrieve MongoDB documents using ObjectId in C#. We will only cover how to query a MongoDB database using ObjectId in C#. Check out our article Getting Started with ASP.NET Core and MongoDB for more information on how to set up...
Custom Naming Policy for JSON in C#
In this article, we are going to learn why and how to customize property names in JSON. First, we will look at the default behavior to find out why we might need to customize our JSON output. After that, we will implement a custom naming policy. [sc name="github"...
Using the CLI to Build and Run .NET Applications
In this article, we will learn more about how to use the CLI to build and run .NET applications. Whether taking our first steps in cross-platform development based on the .NET common language runtime (CLR), or brushing up on some basics to explore a different way to...