C# – Unit test with Moq

By | 04/08/2021

In this post, we will see how to use Moq in order to create Unit Test for a Class Library project used to manage CRUD operations.But, what is Moq?Moq is a library used to create mock objects that simulate or mimic a real object.Here, we can find the Moq project. First of all, we define… Read More »

Web API – Authentication using JWT

By | 21/07/2021

In this post, we will see how to implement token authentication in ASP.NET Core 5.0 Web API using JWT.But first of all, what is JWT?“JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. This information can be… Read More »

SwiftUI – MVVM

By | 14/07/2021

In this post, we will see how to implement MVVM pattern in SwiftUI.But, what is MVVM pattern?From wikipedia:“Model–view–viewmodel (MVVM) is a software architectural pattern that facilitates the separation of the development of the graphical user interface (the view) – be it via a markup language or GUI code – from the development of the business logic or back-end logic (the model) so that the view is not dependent on any… Read More »

Azure – Cosmos DB

By | 07/07/2021

In this post, we will see how to create a database in Cosmos DB using Azure Portal and how to manage CRUD operations with a console application.But, what is Cosmos DB?From Microsoft web site:“Azure Cosmos DB is a fully managed NoSQL database for modern app development. Single-digit millisecond response times, and automatic and instant scalability,… Read More »

Web API – Faker.js

By | 30/06/2021

In this post, we will see how to use the Javascript library called Faker.js for generating fake data for various areas, including address, commerce, company, date, finance, image, random, or name.Here, it is possible to find the project. [HOW TO INSTALL]First of all, we have to install node.js in our system, because Faker is available as… Read More »

Web API – ASP.NET Core 5

By | 23/06/2021

In this post, we will see how to create a WebAPI application with ASP.NET 5.0.For all information about ASP.NET Core 5, we can check the Microsoft Web Site. [VISUAL STUDIO]We open Visual Studio and we select ASP.NET Core Web Api project: In Additional information, we can decide to Enable Docker and Enable OpenAPI support.With Enable… Read More »