AutoBogus
AutoBogus copied to clipboard
FullName doesn't match FirstName & LastName
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.
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!