public static bool TryCreate(out IConfigTestDataService service) { var hasKeys = ConfigurationManager.AppSettings.AllKeys.Any(k => PrefixRegex.IsMatch(k)); if (hasKeys) { service = new AppConfigTestDataService(ConfigurationManager.AppSettings); return(true);; } service = null; return(false); }
public static bool TryCreate(out IConfigTestDataService service) { var hasKeys = ConfigurationManager.AppSettings.AllKeys.Any(k => PrefixRegex.IsMatch(k)); if (hasKeys) { service = new AppConfigTestDataService(ConfigurationManager.AppSettings); return true;; } service = null; return false; }