I want to use Autofac in my project but can't add this. If I use the sample in your issues, autofac does not register my generic mediator Handlers, i.e. WithServices(s => s.AddAutofac()) calls ConfigureTestContainer but somehow Controller throws Handler not Found exception.
I want to use Autofac in my project but can't add this. If I use the sample in your issues, autofac does not register my generic mediator Handlers, i.e.
WithServices(s => s.AddAutofac())
callsConfigureTestContainer
but somehow Controller throwsHandler not Found
exception.While in my Program.cs, I have:
which calls the same
I only renamed it to
ConfigureTestContainer
with same lines and invokebase.ConfigureContainer(builder);
, and an error is thrown Only in tests.