Castle.Windsor will pick up the first constructor which is suitable. So now it mistakenly picks VatLayerExternalSearchProvider(IEnumerable<string> tokens) and provides it with empty token. That's definitely not the intention and instead we want DI to use empty constructor.
I made all other constructors private, so it will for sure pick up the correct one.
Description
Castle.Windsor will pick up the first constructor which is suitable. So now it mistakenly picks
VatLayerExternalSearchProvider(IEnumerable<string> tokens)
and provides it with empty token. That's definitely not the intention and instead we want DI to use empty constructor.I made all other constructors private, so it will for sure pick up the correct one.