AutoBogus icon indicating copy to clipboard operation
AutoBogus copied to clipboard

FullName doesn't match FirstName & LastName

Open vreed1 opened this issue 1 year ago • 1 comments
trafficstars

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.

vreed1 avatar Dec 05 '23 23:12 vreed1

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!

soenneker avatar Jan 25 '24 04:01 soenneker