src/Utils/MasterDataTestHelper/Helpers/ObjectPropertyValueHelper/ObjectPropertyValueHelper.cs
/// <summary>
///     Creates output based on the provided filter.
///     For example, if the input is "empty" and there is a provided rule for "empty", then the input
///     will change accordingly. If there is no rule provided, then the input will be returned.
/// </summary>
/// <param name="input"> The input string. </param>
/// <param name="filterRules"> The dictionary contains the rules. </param>
/// <returns> The value which is either not modified, or modified according to the provided rules. </returns>
Creates output based on the provided filter.
For example, if the input is "empty" and there is a provided rule for "empty", then the input
will change accordingly. If there is no rule provided, then the input will be returned.
Creates output based on the provided filter . For example if the input is " empty " and there is a provided rule for " empty " then the input will change accordingly . If there is no rule provided then the input will be returned .
public static string CreateStringValueForProperty(string input, Dictionary<string, string> filterRules)
        {
            if (filterRules.ContainsKey(input.ToLower()))
            {
                return filterRules[input.ToLower()];
            }
            return input;
        }
public static string CreateStringValueForProperty ( string input , Dictionary < string , string > filterRules ) { if ( filterRules . ContainsKey ( input . ToLower ( ) ) ) { return filterRules [ input . ToLower ( ) ] ; } return input ; }
Creates output based on the provided filter.
Creates output based on the provided filter .
The value which is either not modified, or modified according to the provided rules.
The value which is either not modified or modified according to the provided rules .
input
string
The input string.
The input string .
filterRules
Dictionary<string, string>
The dictionary contains the rules.
The dictionary contains the rules .