Optional Dependencies with Autofac
Ever wanted to define a dependency as optional and only be loaded depending on consumption of your service?
Ever wanted to define a dependency as optional and only be loaded depending on consumption of your service?
Taking up the challenge from a tweet I explain my thought process on improving some code which will hopefully help someone.
How to set a value on an object passed to a mock to drive conditional logic further in the system under test
Asserting numbers of items in a list or collection is vital to unit tests, but which to choose?
Looking a the new version of Microsoft’s Feature Management nuget package and how to get it working in a console application without Azure!
Harnessing the power of the C# 8 using declarations to aid with unit test assert clarity
How many times do you create a private options variable when using json serializer and end up with duplicate code? Let’s take a look at one option to help resolve this.
Looking at how to verify calls to Ilogger based extension methods using Moq.
Investigating how to write integration tests while swapping out dependencies with mocked instances using Moq
How to make you method parameter checks not take up a chunk of the method body