Unit Test – How to use “In Memory Database Provider” for testing in C#

By | 01/04/2020

In this post, we will see how to use In-Memory Database Provider for Unit Test. We start creating a Blank Solution called ProjectDemo and then, we add a Class Library (.NET Core) called Entities where we will define a class called Retailer: [RETAILER.CS] Then, we add another Class Library (.NET Core) called Data where we… Read More: Unit Test – How to use “In Memory Database Provider”… »

Web API – Versioning

By | 18/03/2020

In this post, we will see how to manage the versioning in a .net core Web API service, using three different approaches:1) Query String-Based Versioning2) URL-Based Versioning3) HTTP Header-Based Versioning First of all, we open Visual Studio 2019 and we create a Web API project: If we run the application, this will be the output:… Read More: Web API – Versioning »

Docker – How to install on Win 10

By | 11/03/2020

In this post, we will see how to install Docker on Windows 10.But, what Docker is?From Wikipedia:“Docker is a set of platform as a service (PaaS) products that use OS-level virtualization to deliver software in packages called containers.Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.All containers are… Read More: Docker – How to install on Win 10 »

Angular – How to pass values between components using query string

By | 26/02/2020

In this post, we will see how to pass data between components, using query string.We start creating a project called PassData and installing Angular Material as well:ng new PassDatang add @angular/material Then, we create three components called “Page1”, “Page2” and “Page3”:ng g c Pages/Page1ng g c Pages/Page2ng g c Pages/Page3 Finally, we create an entity… Read More: Angular – How to pass values between components using query… »

C# – How to add and read an appsetting.json file in a Console Application

By | 19/02/2020

In this post, we will see how to add and read an appsettings.json file in a .NET Core Console Application.We open Visual Studio and we create a Console Application (.NET Core) project called “TestJson“: Now, we add a file called “Parameters.json”, where we will storage a connection string for a DB and two parameters called… Read More: C# – How to add and read an appsetting.json file… »

Category: C#

Angular – How to add Angular Material in a project

By | 12/02/2020

In this post, we will see how to add Angular Material in an Angular project. We open Visual Studio Code and we create a new project called MaterialProject, using the commandng new MaterialProject Then, we create three components called HomePage, Page1 and Page2, using the commandsng g c HomePageng g c Page1ng g c Page2… Read More: Angular – How to add Angular Material in a project »