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)); } }
public ScrubShort(ShortScrubber scrubber) { this.scrubber = scrubber; }