Accessing Configuration in .NET Core Test Projects

added by DotNetKicks
2/19/2018 2:47:58 PM

1 Kicks, 265 Views

NET Core provides a clean configuration system and in ASP.NET Core that code is automatically configured for you. In test and other non-Web projects however you have to manually configure the configuration provider yourself. In this post I look at a couple of ways to set up a configuration provider both using raw configuration objects or by explicitly configuring through the depedency injection system.