Skip to content

Passing the number of users with a similar name to the constructor. #10

@lncendia

Description

@lncendia

If you receive in the constructor of the User class the number of users with the same email as the int variable. In the constructor, check if it is greater than 1, then throw an exception. In the repository, define a method to get the number of suitable records. What do you think about this?

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