public static MutatorsConfigurator <TRoot, TChild, TValue> Required <TRoot, TChild, TValue>( this MutatorsConfigurator <TRoot, TChild, TValue> configurator, StaticMultiLanguageTextBase title, int priority = 0, ValidationResultType type = ValidationResultType.Error) { return(configurator.Required(child => new ValueRequiredText { Title = title }, priority, type)); }
public static MutatorsConfigurator <TRoot, TChild, string> IsLike <TRoot, TChild>( this MutatorsConfigurator <TRoot, TChild, string> configurator, string pattern, StaticMultiLanguageTextBase title, int priority = 0, ValidationResultType type = ValidationResultType.Error) { return(configurator.IsLike(pattern, child => new ValueShouldMatchPatternText { Title = title, Pattern = pattern }, priority, type)); }