Skip to content

FullName doesn't match FirstName & LastName #109

@vreed1

Description

@vreed1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions