Closed ViRuSTriNiTy closed 8 months ago
Hey @ViRuSTriNiTy, thanks for bringing this to our attention.
That's definitely something we need to add support for. If you are up to it, feel free to add support for this by extending https://github.com/bUnit-dev/bUnit/blob/main/src/bunit.core/TestServiceProvider.cs and send in a PR.
There should be a preview package available in a few moments @ViRuSTriNiTy
If you have time and gives us feedback whether or not that fits your needs, that would be great.
Preview version should be 1.27.11
@linkdotnet Latest preview works like a charm! Thanks a bunch 😎. When will this state be released as official version?
Yes "soon" ™️ 😄
"Soon" arrived - we are preparing a release, so there will be a stable 1.27
coming in the coming minutes.
Edit: Released with version 1.27.17
Hi there,
.NET 8 comes with a new feature named keyed services.
Currently, when using this feature in a component tested with Bunit the following exception is thrown:
It seems like keyed service support is missing.
Example:
Is it planed to support keyed services or should I go the route of a fallback service provider or even replacing the default service provider?