Exemple #1
0
        /// <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);
        }
Exemple #2
0
        public void SetMaxDecimal(decimal max)
        {
            DecimalFiller decFiller = _fillerManager.GetGenericFiller <decimal, DecimalFiller>();

            decFiller.Max = max;
        }
Exemple #3
0
        public void SetMinDecimal(decimal min)
        {
            DecimalFiller decFiller = _fillerManager.GetGenericFiller <decimal, DecimalFiller>();

            decFiller.Min = min;
        }