.NET

How the Mediator Design Pattern Simplifies an Application

4 months ago

As your computer application gets more complex, more classes may be added. So, the more classes you add, the more difficult it can be to communicate between these classes. This can be a problem if these classes are located in different assemblies. This is where the mediator design pattern comes in. With the mediator design […]

A Beginners Guide to XUnit

4 months ago

Over the last few weeks, I’ve been exploring the functionality of XUnit. For anyone who doesn’t know, XUnit is one of the unit testing frameworks that are available for .NET. Here are some of the topics I’m going to cover. How to set up a test project In-order to create a test, you need to […]

Migrating from .NET Framework to .NET Core

5 months ago

.NET Core was born back in June 2016, and at time of writing, it’s now on to version 2.2, with a preview of version 3 available for download. But if you are still using .NET Framework for some or all of your projects, then it might not be obvious what’s different with .NET Core, or […]

Using SPA Pre-rendering in .NET Core for an Angular Project

5 months ago

Using an Angular project as a Single Page Application (SPA) is relatively straight forward in .NET Core. The ASP.NET Core project already has extensions that allow you to do this. You can find the Microsoft.AspNetCore.SpaServices.Extensions from Nuget and add it to your project. If you are running in development mode, you can use the AngularCliBuilder […]

An Efficient Way of Handling Multiple Actions through One Route

6 months ago

Recently, I wrote about a way that you can use one route to direct traffic to different controllers and actions in ASP.NET Core MVC. In that example, I mentioned that there were six different types of pages that would be handled by one route. This is great, but the problem I experienced was the data […]

Test First, Code Second

6 months ago

In the world where everyone wants something yesterday, it’s very easy not to write any test plans, particularly when you got an eager client on your back. And if you are severely behind schedule, and working all the hours god sends to deliver the work, you are going to have to cut corners and unit […]

Changing controllers and actions using one route in ASP.NET Core

6 months ago

I was presented with a challenge recently. Six different types of pages wanted to appear after a generic sub directory. Well that’s fine. In MVC, you can just set up six different routes to cope with the six different types of pages. Each of those routes can have a different default controller and action. Job […]