Exemple #1
0
        private object RouteShortType()
        {
            var scrubber = _currentProperty.GetCustomAttribute(typeof(ScrubShort));

            if (scrubber != null)
            {
                ScrubShort    atr           = scrubber as ScrubShort;
                ShortScrubber attrScrubType = atr.scrubber;

                switch (attrScrubType)
                {
                default:
                    var defaultValue = Faker.RandomNumber.Next(short.MaxValue - 1);
                    return(Convert.ToInt16(defaultValue));
                }
            }
            else
            {
                var defaultValue = Faker.RandomNumber.Next(short.MaxValue - 1);
                return(Convert.ToInt16(defaultValue));
            }
        }
Exemple #2
0
 public ScrubShort(ShortScrubber scrubber)
 {
     this.scrubber = scrubber;
 }