/// <summary> /// Fill the target property with values between the specified range /// </summary> /// <param name="min">The minimum value (inclusive)</param> /// <param name="max">The maximum value (inclusive)</param> /// <returns>A configurator for the target object type</returns> public AngieConfigurator <T> WithinRange(int min, int max) { IntFiller filler = new IntFiller(typeof(T), _propertyInfo.Name, min, max); _fillerManager.RegisterFiller(filler); return(this); }
public void SetMaxInt(int max) { IntFiller intFiller = (IntFiller)_genericPropertyFillersByPropertyType[typeof(int)]; intFiller.Max = max; }
public void SetMinInt(int min) { IntFiller intFiller = (IntFiller)_genericPropertyFillersByPropertyType[typeof(int)]; intFiller.Min = min; }
public void SetMaxInt(int max) { IntFiller intFiller = _fillerManager.GetGenericFiller <int, IntFiller>(); intFiller.Max = max; }
public void SetMinInt(int min) { IntFiller intFiller = _fillerManager.GetGenericFiller <int, IntFiller>(); intFiller.Min = min; }