Archived articles - March 2020

Archive for March 2020 (3)

Mocking HttpClient in unit tests with Moq and Xunit when using IHttpClientFactory
Unit testing IHttpClientFactory by mocking HttpClient in .NET Core C#
 
0
.NET Core has done a great job by introducing interface for most of classes which makes them easy to write unit tests around them. However, there are a lot of classes that re commonly used which are not refactored in .NET Core...read more
Overwriting configuration values with environment variable in ASP.NET Core
Using environment specific variables to overwrite configuration values in ASP.NET Core
 
0
It is obvious that no matter what is the size and complexity of your application, configuration values on your local development machine and the environment where the application is going to run will be different. To avoid any hard-coding and recompilation of your code, the most common practice is to store application and environment specific values to configuration files. Although ASP.NET Core provides great out of the box solution for having multiple configuration files depending on the environment (Use multiple environments in ASP.NET Core), there are still things that should not reside in the configuration files. ...read more
Custom SignalR hub authorization in ASP.NET Core
ASP.NET Core SignalR hub authorization
 
0
SignalR is number one choice for real-time communication between server and client. It implements several transports for communication between server and client...read more

.NET

read more

JavaScript

read more

SQL/T-SQL

read more

Umbraco CMS

read more