private IEnumerable<IValueProvider> BuildValueProviders(IEnumerable<ParameterValue> values, IStringToValueTranslator translator, INConfigSettings settings) { foreach (var parameterValue in values) { IEnumerable<IFilterCondition> filterConditions = this.TranslateFilterConditions(parameterValue.FilterConditions, settings); yield return new TranslateFromStringValueProvider(translator, parameterValue.Value, filterConditions.ToArray()); } }
public ValueProvider(IStringToValueTranslator translator, string value) { _translator = translator; _value = value; }
public TranslateFromStringValueProvider(IStringToValueTranslator translator, string value, IFilterCondition[] filterConditions) { this.Translator = translator; this.Value = value; this.FilterConditions = filterConditions; }