Skip to content

Testing the loading of configuration from appsettings

Notifications You must be signed in to change notification settings

JHooper-bsl/TestConfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The purpose of this project is to test how dotnet binds string arrays from appsettings config.

Currently I've just got a single controller which I have injected in my config. This controller method will return the config.

So to test, run the app (which will launch swagger), then send a request to the GET endpoint on the Subs controller.

I've additionally gone and added in some asserts to the data which for some unexpected reason the application is duplicating the values within the config array. Therefore this is throwing.

About

Testing the loading of configuration from appsettings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages