Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cast employeeId to int in the bulk update employee command #16307
@PierreRambaud problem is if we type int the constructor of EmployeeId ValueObject, tests fail because they are testing that if we send a string to the constructor it should throw an exception but if the constructor is type int, the string will be casted to int and so no exception will be thrown.
To have an exception to be thrown, It would need to set
We had a discussion with @eternoendless and decided that we should add
What do you think?