Zone of Development

by Damiano Abballe

C# – Joining Threads

In this post, we will see how to use the Join method with the Threads in order to allows one thread to wait until another completes the execution. We start creating a Console application where we add three methods in Program.cs called Method1, Method2 and Method3: Then, we modify Main method in order to run […]

Read More

C# – Yield

In this post, we will see how to use the Yield keyword in a C# application.But first of all, what is Yield?From Microsoft web site:“When you use the yield contextual keyword in a statement, you indicate that the method, operator, or get accessor inwhich it appears is an iterator. Using yield to define an iterator […]

Read More

C# – Introduction to Multithreading

In this post, we will see how to use multithreading in C# in order to have best performances in our applications.Multithread is a very big argument and in this first post, we will just see how to start working with it. But first of all, what does Multithreading mean?From Microsoft web site:“A process is an […]

Read More

C# – How to mock a Web API call with Moq

In this post, we will see how to mock a Web API call with Moq.In order to do it, we will create some unit test for the method GetAllUsers that we used in the post C# – Use IHttpClientFactory in a console app. OBVIOUSLY, THE METHOD IS VERY EASY, BUT WE WILL USE IT ONLY […]

Read More

C# – Use IHttpClientFactory in a console app

In this post, we will see how to use IHttpClientFactory in a console application, in order to call a WebAPI service that gives us a list of Users: The url of this WebAPI is http://localhost:3000/users and I have created this service using Json Server First of all, we create a Console application project called MockWEBAPI […]

Read More

C# – Unit test with Moq

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

SwiftUI – How to call a Rest API with Combine

In this post, we will see how to consume a Rest API in Swift with Combine.We will use a Rest API that it will get us the list of the annual holiday for Italy in 2022. But first of all, what is Combine?From Apple web site:“The Combine framework provides a declarative Swift API for processing […]

Read More

Web API – Authentication using JWT

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

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

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