Replies: 1 comment 1 reply
-
You can try https://docs.abp.io/en/abp/latest/Settings#custom-setting-value-providers |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using ABP Framework with a gremlin graph database.
I use ISettingsProvider to read the database settings from my appsettings.json inside my Repository, via DI.
protected readonly ISettingProvider _settingProvider;
I am then able to read the settings...
string host = (await _settingProvider.GetOrNullAsync("GremlinDbHost"));
I was hoping to create some integration tests inside the application.tests project and override the db settings with a different database. Is there a way to set up an ISettingsProvider inside a test module that would override the settings in the repository?
Beta Was this translation helpful? Give feedback.
All reactions