Mocking LINQ Expressions

Hello and welcome In today's post, we will discuss mocking/stubbing lambda expressions so that we can have a bit more control over our unit tests. Keep in mind that I'm by no means versed in expression trees so I will try my best to explain. What is an Expression and how to use it Going … Continue reading Mocking LINQ Expressions

Application triggers for Asp.Net Core 2.1 entity framework core

Hello and welcome πŸ™‚ Today I wanted to talk about extending your application and your DbContext to run arbitrary code when a save occurs. The backstory While working with quite a few applications that work with databases especially using entity framework, I noticed the pattern of saving changes to the database and then do something … Continue reading Application triggers for Asp.Net Core 2.1 entity framework core

Branching authentication in Asp.Net Core 2.1

Hello and welcome πŸ™‚ In the last post I hinted at using SignalR and query strings to branch how a user is authenticated. Backstory I ended up in this scenario when one of the requirements for the system was that it needs to be embedded into the client's system, that means that we would have … Continue reading Branching authentication in Asp.Net Core 2.1

Background worker in ASP.Net Core

Hello and Welcome :), Today we are going to discuss how we can add functionality to an APS.Net Core application outside of a request. The code for this post can be found here. The story As some, if not all of you know, web servers usually only work in the context of a request. So … Continue reading Background worker in ASP.Net Core

Rolling our own IoC

Hello and welcome πŸ™‚ Previously we talked about what Dependency Inversion and Dependency Injection are, today we’re going to look at what an Inversion of Control (IoC) container is and how it works. In the future, we will also have a look at what are the common implementations of IoCs available and which are my … Continue reading Rolling our own IoC

Dependency Inversion and Dependency Injection

Hello and welcome, Across the posts, there has been the mention about something called Dependency Inversion or Dependency Injection. In this post, we will take a deeper look at what that actually means and what how it helps us. Dependency Inversion When we talk about dependency inversion we talk about how we structure our projects … Continue reading Dependency Inversion and Dependency Injection

FileSystem Syncher – Part 3

Hello and welcome, I thought it's just about the time we continue from where we were in the last part of this project. As always if you want to follow along, the source code from last time can be found here. The reason there is a new release and not just continuing from last time … Continue reading FileSystem Syncher – Part 3