Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

Allow user to override single config value #463

Closed
FermJacob opened this issue Aug 26, 2020 · 0 comments · Fixed by #467
Closed

Allow user to override single config value #463

FermJacob opened this issue Aug 26, 2020 · 0 comments · Fixed by #467
Assignees

Comments

@FermJacob
Copy link
Collaborator

Implement a new method called AddTestSettingValues to allow for 3 string (section, key, and value) with the overrideexisting bool.

public static void AddTestSettingValues(string key, string value, string section, bool overrideExisting = false)

This allows a user to not have to pass in a full Dictionary<string,string> for one value

Existing example:

public static void AddTestSettingValues(IDictionary<string, string> configurations, ConfigSection section = DEFAULTMAQSSECTION, bool overrideExisting = false)
        {
            AddTestSettingValues(configurations, section.ToString(), overrideExisting);
        }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants