public MyInfoConnectorConfig GetSystemUnderTest() { Func <string, string> settingLoader = (string key) => { return($"valueFor{key}"); }; var config = MyInfoConnectorConfig.Load(settingLoader); return(config); }
private MyInfoConnectorConfig GetConfig() { var appSettings = ConfigurationManager.AppSettings; // Allows us to programmatically switch to a different set Func <string, string> getSetting = key => appSettings["Sandbox" + key]; var config = MyInfoConnectorConfig.Load(getSetting); return(config); }
public static MyInfoConnectorConfig GetFromAppConfig() { var config = MyInfoConnectorConfig.Load(ConfigurationManager.AppSettings, "MyInfo"); return(config); }