.NET

.NET Core

Composite Pattern in .NET Core with Dependency Injection

Implementing a composite pattern for the .NET Core DI framework.

Read More
.NET Core

Decorators in .NET Core with Dependency Injection

Implementing a decorator pattern for the .NET Core DI framework.

Read More
.NET Core

Find .NET Core packages in all projects

In a quick aide-memoire for next time I need to use it: here's a Powershell snippet that will return a list of all unique package names in all .NET Core projects under the current folder.

Read More
Unit Testing

Moq-ing Dynamics

This post serves as a reminder to myself...largely because I have wasted time tracking this down twice now!

Read More
.NET

Autofac and Async Resources

I came across a problem on a recent WebAPI project where I wanted to use Autofac to inject some tenant information (i.e. derived per request) into the constructor of each controller

Read More
ASP.NET

Custom Operation Names with Swashbuckle 5.0

One of the many ways to customise Swagger output with Swashbuckle.

Read More
ProxyApi

Hiding ProxyApi Routes from Web API Help Pages

Keep your Web API help pages tidy when using ProxyApi

Read More
Unit Testing

Selenium: Early Thoughts on Test Automation

My thoughts on a first dive into using Selenium for test automation.

Read More
ASP.NET

Excluding Current RouteData from UrlHelper

By default, the MVC `UrlHelper` will include all of the route values for the current route in it's calculations. What if you don't want it to?

Read More
ProxyApi

ProxyApi & Anti-Forgery Tokens

Prevent CSRF with an anti-forgery token in ProxyApi.

Read More