예제 #1
0
 internal PropertyFiller(GenFuInstance genfu, string[] objectTypeNames, string[] propertyNames, bool isGenericFiller)
 {
     ObjectTypeNames = objectTypeNames.Select(o => o.ToLowerInvariant()).ToArray();
     PropertyNames   = propertyNames.Select(p => p.ToLowerInvariant()).ToArray();
     GenFu           = genfu;
     IsGenericFiller = isGenericFiller;
 }
예제 #2
0
 internal CustomFiller(GenFuInstance genfu, string propertyName, Type objectType, bool isGeneric, Func <T> filler)
     : base(genfu, new[] { objectType.FullName }, new[] { propertyName }, isGeneric)
 {
     if (objectType != typeof(Object))
     {
         AddAllBaseTypes(propertyName, objectType);
     }
     _filler = filler;
 }
 public GenFuStringConfigurator(GenFuInstance genfu, FillerManager fillerManager, MemberInfo propertyInfo)
     : base(genfu, fillerManager)
 {
     _propertyInfo = propertyInfo;
 }
예제 #4
0
 public NullableUIntFiller(GenFuInstance genFu) : base(genFu, new[] { "object" }, new[] { "*" }, true)
 {
     Min = GenFu.Defaults.MIN_UINT;
     Max = GenFu.Defaults.MAX_UINT;
 }
예제 #5
0
 public AgeFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "Age" })
 {
 }
예제 #6
0
 public DoubleFiller(GenFuInstance genFu, Type objectType, string propertyName, double min, double max)
     : base(genFu, new[] { objectType.FullName }, new[] { propertyName })
 {
     Min = min;
     Max = max;
 }
예제 #7
0
 public NullableDecimalFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "*" }, true)
 {
     Min = GenFu.Defaults.MIN_DECIMAL;
     Max = GenFu.Defaults.MAX_DECIMAL;
 }
예제 #8
0
 public IntFiller(GenFuInstance genFu) : base(genFu, new[] { "object" }, new[] { "*" }, true)
 {
     Min = genFu.Defaults.MIN_INT;
     Max = genFu.Defaults.MAX_INT;
 }
예제 #9
0
 public FirstNameFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "firstname", "fname", "first_name" })
 {
 }
예제 #10
0
 public MusicGenreDescriptionFiller(GenFuInstance genFu)
     : base(genFu, new[] { "genre", "musicgenre", "music_genre" }, new[] { "description", "desc", "genre_description", "genre_desc" })
 {
 }
예제 #11
0
 public MusicGenreNameFiller(GenFuInstance genfu)
     : base(genfu, new[] { "genre", "musicgenre", "music_genre" }, new[] { "title", "name", "genre_title", "genre_name" })
 {
 }
예제 #12
0
 public MusicArtistNameFiller(GenFuInstance genfu)
     : base(genfu, new[] { "artist" }, new[] { "name", "artistname", "artist_name" })
 {
 }
예제 #13
0
 public ArticleTitleFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "title" })
 {
 }
예제 #14
0
 public MusicAlbumTitleFiller(GenFuInstance genfu)
     : base(genfu, new[] { "album", "musicalbum", "music_album" }, new[] { "title", "albumname", "name" })
 {
 }
예제 #15
0
 public PhoneNumberFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "fax", "phone", "phonenumber", "phone_number", "homenumber", "worknumber" })
 {
 }
예제 #16
0
 public ShortFiller(GenFuInstance genFu, Type objectType, string propertyName, short min, short max)
     : base(genFu, new[] { objectType.FullName }, new[] { propertyName })
 {
     Min = min;
     Max = max;
 }
예제 #17
0
 public NullableShortFiller(GenFuInstance genfu) : base(genfu, new[] { "object" }, new[] { "*" }, true)
 {
     Min = GenFu.Defaults.MIN_SHORT;
     Max = GenFu.Defaults.MAX_SHORT;
 }
예제 #18
0
 public PersonTitleFiller(GenFuInstance genFu)
     : base(genFu, new[] { "person", "employee", "user" }, new[] { "title" })
 {
 }
예제 #19
0
 public NullableULongFiller(GenFuInstance genFu) : base(genFu, new[] { "object" }, new[] { "*" }, true)
 {
     Min = 0;
     Max = GenFu.Defaults.MAX_INT;
 }
예제 #20
0
 public LastNameFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "lastname", "lname", "last_name" })
 {
 }
예제 #21
0
 public NullableDecimalFiller(GenFuInstance genFu, Type objectType, string propertyName, decimal min, decimal max)
     : base(genFu, new[] { objectType.FullName }, new[] { propertyName })
 {
     Min = min;
     Max = max;
 }
예제 #22
0
 public EmailFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "email", "emailaddress", "email_address" })
 {
 }
예제 #23
0
 public NullableDoubleFiller(GenFuInstance genFu) : base(genFu, new[] { "object" }, new[] { "*" }, true)
 {
     Min = GenFu.Defaults.MIN_DOUBLE;
     Max = GenFu.Defaults.MAX_DOUBLE;
 }
예제 #24
0
 public DateTimeOffsetFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "*" }, true)
 {
 }
예제 #25
0
 public PriceFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "price", "amount", "amt" })
 {
 }
예제 #26
0
 public BirthDateFiller(GenFuInstance genFu)
     : base(genFu, new[] { "object" }, new[] { "birthdate", "birth_date" })
 {
 }
예제 #27
0
 public NullableUIntFiller(GenFuInstance genFu, Type objectType, string propertyName, uint min, uint max) : base(genFu, new[] { objectType.FullName }, new[] { propertyName })
 {
     Min = min;
     Max = max;
 }
예제 #28
0
 public BaseValueGenerator(GenFuInstance genFu)
 {
     GenFu = genFu;
 }
예제 #29
0
 public GenFuConfigurator(GenFuInstance genfu, FillerManager filterManager)
 {
     _genfu         = genfu;
     _fillerManager = filterManager;
 }
예제 #30
0
 public GenFuShortConfigurator(GenFuInstance genfu, FillerManager fillerManager, MemberInfo propertyInfo)
     : base(genfu, fillerManager)
 {
     this.genfu    = genfu;
     _propertyInfo = propertyInfo;
 }