System.InvalidOperationException: No constructor for type 'Microsoft.Extensions.Options.ConfigurationChangeTokenSource`1[CustomOptions]' can be instantiated using services from the service container and default values.
System.InvalidOperationException: No constructor for type 'Microsoft.Extensions.Options.ConfigurationChangeTokenSource`1[CustomOptions]' can be instantiated using services from the service container and default values.
My tests are using a custom helper which iterate through a IServiceCollection to retrieve service from default IoC by using IServiceProvider.GetService( ServiceDescriptor.ServiceType).
At the beginning I was registering my options this way (which cause the exception spoken above) :