/// <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) { DecimalFiller filler = new DecimalFiller(typeof(T), _propertyInfo.Name, min, max); _fillerManager.RegisterFiller(filler); return(this); }
public void SetMaxDecimal(decimal max) { DecimalFiller decFiller = _fillerManager.GetGenericFiller <decimal, DecimalFiller>(); decFiller.Max = max; }
public void SetMinDecimal(decimal min) { DecimalFiller decFiller = _fillerManager.GetGenericFiller <decimal, DecimalFiller>(); decFiller.Min = min; }