/// <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 GenFuConfigurator <T> WithinRange(int min, int max) { IntFiller filler = new IntFiller(this.GenFu, typeof(T), _propertyInfo.Name, min, max); _fillerManager.RegisterFiller(filler); return(this); }
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; }