Unable to configure values in DI using the extension method - C#