I’d also say that the validation method should be in the Trade entity constructor itself and not in a different struct (invalid state should be illegal).

Álefe Nascimento da Silva
Álefe Nascimento da Silva

Written by Álefe Nascimento da Silva

A Software Engineer who loves to learn new things.

No responses yet