Introduction You have probably wondered whether it is possible to manipulate different instances of the same service according to a certain context in your application. Well, know that it is possible. I have prepared in this article a concrete example…
You will never give up a unit test anymore with ExpectedObjects in .NET Core
Introduction Let’s be honest, who has never abandoned a unit test because it was long and hard to test? If you are reading this article it has probably happened to you, don’t be ashamed, because, in fact, I’am the first…
Duck casting in C# with Impromptu Interface, example with ASP.NET Core
Introduction First, “duck casting” is not “duck typing”. For those who want to know more about “duck typing” a very good link is available here: https://ericlippert.com/2014/01/02/what-is-duck-typing/. In this article I’m talking about “duck casting”, a technique that allows to use…
Easy DataTable mocking for a simpler unit test in .NET Core
Introduction Let’s face it, it all happened to us in our developer’s life to abandon a unit test because it was too tedious. For example the amount of data to mock was too great, but also, with some particularly heavy…
Common features in ASP.NET Core 2.2 WebApi: Mapping
Common features in ASP.NET Core 2.1 WebApi: Authenticating with a JWT Common features in ASP.NET Core 2.1 WebApi: Validation Common features in ASP.NET Core 2.1 WebApi: Error handling Common features in ASP.NET Core 2.1 WebApi: Logging Common features in…
Common features in ASP.NET Core 2.2 WebApi: Caching
Common features in ASP.NET Core 2.1 WebApi: Authenticating with a JWT Common features in ASP.NET Core 2.1 WebApi: Validation Common features in ASP.NET Core 2.1 WebApi: Error handling Common features in ASP.NET Core 2.1 WebApi: Logging Common features in…
Common features in ASP.NET Core 2.2 WebApi: Profiling
Common features in ASP.NET Core 2.1 WebApi: Authenticating with a JWT Common features in ASP.NET Core 2.1 WebApi: Validation Common features in ASP.NET Core 2.1 WebApi: Error handling Common features in ASP.NET Core 2.1 WebApi: Logging Common features in…
Common features in ASP.NET Core 2.1 WebApi: Documenting
Common features in ASP.NET Core 2.1 WebApi: Authenticating with a JWT Common features in ASP.NET Core 2.1 WebApi: Validation Common features in ASP.NET Core 2.1 WebApi: Error handling Common features in ASP.NET Core 2.1 WebApi: Logging Common features in…
Common features in ASP.NET Core 2.1 WebApi: Testing
Common features in ASP.NET Core 2.1 WebApi: Authenticating with a JWT Common features in ASP.NET Core 2.1 WebApi: Validation Common features in ASP.NET Core 2.1 WebApi: Error handling Common features in ASP.NET Core 2.1 WebApi: Logging Common features in…
Common features in ASP.NET Core 2.1 WebApi: Logging
Common features in ASP.NET Core 2.1 WebApi: Authenticating with a JWT Common features in ASP.NET Core 2.1 WebApi: Validation Common features in ASP.NET Core 2.1 WebApi: Error handling Common features in ASP.NET Core 2.1 WebApi: Logging Common features in…