/// <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);
        }
Beispiel #2
0
        public void SetMaxInt(int max)
        {
            IntFiller intFiller = _fillerManager.GetGenericFiller <int, IntFiller>();

            intFiller.Max = max;
        }
Beispiel #3
0
        public void SetMinInt(int min)
        {
            IntFiller intFiller = _fillerManager.GetGenericFiller <int, IntFiller>();

            intFiller.Min = min;
        }