Antonio

How to handle File and Folder dialog windows in a WPF application

WPF (Windows Presentation Foundation) is a set of libraries relying on the .NET Framework (also available from .NET Core 3) which allows you to build graphical desktop applications. On December 2018,  Microsoft announced releasing WPF as open source project on GitHub. File Dialog When building desktop applications, you’ll likely find yourself in the need of asking the …

How to handle File and Folder dialog windows in a WPF application Read More »

How to integrate ASP.NET Identity Core inside your web application

In this tutorial I will show you how to integrate one of the most complete and easy to use authentication system in your aspnet core web application. This is called ASP.NET Identity Core and it allows your application to handle user identification and management almost out of the box. Prerequisites This tutorial is for anyone …

How to integrate ASP.NET Identity Core inside your web application Read More »

Make a fully functional ASP.NET Core application out of a bootstrap admin template

In the last couple of years, it happened quite often that I had to build a web application to serve as a backoffice administration panel. So I took a fresh asp.net core application plus a static admin template and I made them working together with a database connection, a bunch of models/controllers and some JavaScript. …

Make a fully functional ASP.NET Core application out of a bootstrap admin template Read More »

Quick introduction on how to use the ASP.NET Core built-in dependency injection

Intro Dependency injection is a programming technique where an object (the client) gets a dependency (i.e. a service) supplied by another object (the injector). This way the client delegates the “burden” of knowing how to implement a certain service to another class, actually decoupling itself from the service. Dependency Injection is also a design pattern …

Quick introduction on how to use the ASP.NET Core built-in dependency injection Read More »

Testing your code part 3 – ClassData and MemberData

In the previous article we’ve seen how to use the [Theory] attribute with [InlineData], which allow us to have static elements to feed our tests methods. This particular approach can bring lots of noise inside our code, especially when dealing with 10 or more test methods in the same class. In this article we’ll see how to use [ClassData] and [MemberData] attributes …

Testing your code part 3 – ClassData and MemberData Read More »

Testing your code part 2 – Theories and InlineData

In the last article we introduced xUnit.net and talked about the very basic way to write tests with the [Fact] attribute. Today will we’ll add some spicy to our tests with the [Theory] attribute. The [Theory] attribute allows you to dynamically pass a set of data to your test method and to execute a test for every given set. This way …

Testing your code part 2 – Theories and InlineData Read More »