/// <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(short min, short max)
        {
            ShortFiller filler = new ShortFiller(this.genfu, typeof(T), _propertyInfo.Name, min, max);

            _fillerManager.RegisterFiller(filler);
            return(this);
        }
Example #2
0
        public void SetMaxShort(short max)
        {
            ShortFiller shortFiller = _fillerManager.GetGenericFiller <short, ShortFiller>();

            shortFiller.Max = max;
        }
Example #3
0
        public void SetMinShort(short min)
        {
            ShortFiller shortFiller = _fillerManager.GetGenericFiller <short, ShortFiller>();

            shortFiller.Min = min;
        }