Closed anton-micrypto closed 5 years ago
It doesn't work to expose the IServiceCollection
, because that's the builder API. This exposes methods for configuring DI (e.g., AddSingleton
) which wouldn't work, so it would confuse people.
Instead you'd need to expose the IServiceProvider
that is created from the service collection.
Ok thanks, that makes sense.
Some tests may require access to the host's services.