Unit tests that register services via Service<T> or Use<T>() may also need to have those services made available via IServiceProvider. An example is where code needs to use HttpContext.RequestedServices. This library could provide access customise an internal IServiceCollection and allow access to IServiceProvider.
Unit tests that register services via
Service<T>orUse<T>()may also need to have those services made available viaIServiceProvider. An example is where code needs to useHttpContext.RequestedServices. This library could provide access customise an internalIServiceCollectionand allow access toIServiceProvider.