Allow me to mock your code

In this fourth part of the series on unit testing, we will look at mocks and fakes.

Published 15 Nov 2018
read more...

Remove statics to make code unit testable

In this third part, we will look at why you need to remove static method calls to make you code testable.

Published 15 Nov 2018
read more...

My unit testing setup

In this second post of my series on unit testing, I want to run through the tools and packages I use.

Published 15 Nov 2018
read more...

What is Unit Testing?

In this series of posts, I will explore unit testing in c#. So, the first question is what is Unit Testing?

Published 15 Nov 2018
read more...

Handling 404 not found in MVC

The default 404 (not found) page for asp.net MVC and IIS is, well, less than ideal. With a small amount of code we can do much better!

Published 15 Nov 2018
read more...

Stop serving content from your Azure url

When you set you site up on azure, you get a .azurewebsites.net url. You can then point your domain to this. However, sometimes google will try and index this site too. That means you could potentially get penalised for duplicate content.

Published 15 Nov 2018
read more...

Quickly create json & XML classes in Visual Studio

I've done a lot of integrations with api's in my time. I'm always amazed when I speak to other developers that many don't know about this nifty little feature in Visual Studio. It has been in there for as long as I can remember and will save you lots of time.

Published 15 Nov 2018
read more...

Automatic created and updated dates with Entity Framework

If you speak to any DBA (obviously only when you have to) the one thing they all appreciate is having updated and created dates on your database tables. They will try and push you down some Sql trigger route or something similar, but we are developers. We can't test that!

Published 15 Nov 2018
read more...

The dreaded first post

Every blog has to start somewhere, and this one has been several years in the making...

Published 15 Nov 2018
read more...