@@ -187,16 +187,16 @@ static TestDataHelper()
187187 /// <summary>
188188 /// Gets a required configuration value and throws if not found
189189 /// </summary>
190- /// <param name="key ">Configuration key</param>
190+ /// <param name="configKey ">Configuration key name </param>
191191 /// <returns>Configuration value</returns>
192192 /// <exception cref="InvalidOperationException">Thrown when configuration is missing</exception>
193- private static string GetRequiredConfig ( string key )
193+ private static string GetRequiredConfig ( string configKey )
194194 {
195- var value = ConfigurationManager . AppSettings [ key ] ;
195+ var value = ConfigurationManager . AppSettings [ configKey ] ;
196196 if ( string . IsNullOrEmpty ( value ) )
197197 {
198198 throw new InvalidOperationException (
199- $ "Required configuration '{ key } ' is missing from app.config. " +
199+ $ "Required configuration '{ configKey } ' is missing from app.config. " +
200200 $ "Please ensure all required keys are present in the <appSettings> section.") ;
201201 }
202202 return value ;
@@ -205,12 +205,12 @@ private static string GetRequiredConfig(string key)
205205 /// <summary>
206206 /// Gets an optional configuration value with a default
207207 /// </summary>
208- /// <param name="key ">Configuration key</param>
208+ /// <param name="configKey ">Configuration key name </param>
209209 /// <param name="defaultValue">Default value if not found</param>
210210 /// <returns>Configuration value or default</returns>
211- private static string GetOptionalConfig ( string key , string defaultValue = null )
211+ private static string GetOptionalConfig ( string configKey , string defaultValue = null )
212212 {
213- return ConfigurationManager . AppSettings [ key ] ?? defaultValue ;
213+ return ConfigurationManager . AppSettings [ configKey ] ?? defaultValue ;
214214 }
215215
216216 /// <summary>
0 commit comments