In this example, the resolver will first try to resolve the actor using the registration name "joe". If it finds no matching registration then it will use a nameless registration.
This can be leveraged in the setup logic to preconfigure the actor before passing it to the test logic.
A test should be constructed for this scenario to verify that it works like this.
A quirk of the dependency injection, which may be leveraged, is that specifically-named parameters will resolve using a matching registration name.
For example:
In this example, the resolver will first try to resolve the actor using the registration name "joe". If it finds no matching registration then it will use a nameless registration.
This can be leveraged in the setup logic to preconfigure the actor before passing it to the test logic.
A test should be constructed for this scenario to verify that it works like this.