Quantcast
Channel: .NET – Anthony Giretti's .NET blog
Browsing all 25 articles
Browse latest View live

How to unit test Internal classes in .NET Core applications?

Introduction The creation of unit tests is an important step in ensuring the quality of...

View Article



How to unit test private methods in .NET Core applications? (even if it’s bad)

Introduction Yes it’s bad and dirty! Since your private methods are only an implementation detail...

View Article

How to fix unit test discovery in VS 2017 with MSTest V2?

Introduction Microsoft Test Framework “MSTest V2” is the evolution of the Microsoft Test Framework and Adapter....

View Article

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...

View Article

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...

View Article


Best practices with HttpClient and Retry Policies with Polly in .NET Core 2,...

Best practices with HttpClient and Retry Policies with Polly in .NET Core 2, Part 1...

View Article

Best practices with HttpClient and Retry Policies with Polly in .NET Core 2,...

Best practices with HttpClient and Retry Policies with Polly in .NET Core 2, Part 1...

View Article

How to use .NET Core 3 previews in Visual Studio 2019 v16.2.0 ?

Some of you may have already tried .NET Core previews in Visual Studio 2019 in...

View Article


SignInNames available in Microsoft Graph

SignInNames available in the new Microsoft Graph API Going further with Microsoft Graph by using...

View Article


Writing cleaner Typed HttpClient using a custom DelegatingHandler

Introduction I write a lot of HttpClient, including typed client. Since I discovered Refit I...

View Article

Building a Windows service with Worker Services and .NET Core 3.1, part 1:...

Building a Windows service with Worker Services and .NET Core 3.1, part 1: Introduction Building...

View Article

Building a Windows service with Worker Services and .NET Core 3.1, part 2:...

Building a Windows service with Worker Services and .NET Core 3.1, part 1: Introduction Building...

View Article

Tips & tricks for unit testing in .NET Core 3: Mocking IHttpContextAccessor

Introduction I wanted to write this article because I recently came across an interesting test...

View Article


Tips & tricks for unit testing in .NET Core 3: Using and mocking ISystemClock...

Introduction I discovered not long ago that a way to inject DateTime by dependency in...

View Article

Tips & tricks for unit testing in .NET Core 3: Checking matching and non...

Introduction You must have been like me for a long time unable to do one...

View Article


gRPC & ASP.NET Core 3.1: How to create a gRPC client ?

Creating a gRPC client In this example we will create a .NET Core 3.1 console...

View Article

gRPC & ASP.NET Core 3.1: Resiliency with Polly

What is Polly ? Polly is a .NET resilience and transient-fault-handling library that allows developers to...

View Article


Integrate NDepend 2020 into your .NET Core projects

Introduction In computer science and software engineering in particular, software quality is an overall assessment...

View Article

.NET 5: Exploring System.Net.Http.Json namespace

Introduction .NET 5 brings interesting new features. In this article I will introduce you a...

View Article

.NET 5: How to enable .NET 5 runtime on console apps instead of .NET Core 3.1 ?

Introduction You may have noticed it already, but when you create a console application with...

View Article
Browsing all 25 articles
Browse latest View live




Latest Images