fix: Request validation in UserService
This commit is contained in:
parent
1eee6b1b48
commit
7e38b5a2e0
9 changed files with 126 additions and 26 deletions
|
@ -23,8 +23,11 @@ public class EntityCreator {
|
|||
return new UserEntityBuilder();
|
||||
}
|
||||
|
||||
public static UserCreateRequest userRequest() {
|
||||
return new UserCreateRequest(Constants.NAME, Constants.SURNAME, Constants.PESEL, Constants.PLN);
|
||||
public static UserCreateRequest.UserCreateRequestBuilder userRequest() {
|
||||
return UserCreateRequest.builder().name(Constants.NAME)
|
||||
.surname(Constants.SURNAME)
|
||||
.pesel(Constants.PESEL)
|
||||
.pln(Constants.PLN);
|
||||
}
|
||||
|
||||
public static class UserEntityBuilder {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue