nickdodd79 / AutoBogus

A C# library complementing the Bogus generator by adding auto creation and population capabilities.
MIT License
423 stars 49 forks source link

FullName doesn't match FirstName & LastName #109

Open vreed1 opened 7 months ago

vreed1 commented 7 months ago

Is it expected when generating with conventions that a FullName property will not necessarily match what gets generated in FirstName & LastName properties on the same object? For example, ending up with person object generated with FirstName "Alice", LastName "Smith", FullName "Jane Doe".

Looking at the FullNameByNameGenerator, it appears that would be expected since it generates using: context.OverrideContext.Faker.Name.FullName(); instead of: context.OverrideContext.Faker.Person.FullName

I can disable FirstName, LastName, FullName and add my own overrides that generate from Faker.Person instead of Faker.Name to workaround that. But I want to make sure I'm not missing something simpler.

soenneker commented 5 months ago

I've noticed the same thing.

Due to the performance issues and missing types etc I've decided to build an updated version of AutoBogus: soenneker.utils.autobogus

I'll be sure to get this fixed in my lib!