Example #1
0
 private void validateNewWorkerDataIsCorrect(WorkerDTO newWorker)
 {
     validator.validateHasAllFields(null, newWorker);
     validator.validateAllFieldsHaveCorrectType(null, newWorker);
     validator.validatePasswordsMatch(null, newWorker);
 }
Example #2
0
 private void validateNewClientDataIsCorrect(ClientDTO newClient)
 {
     validator.validateHasAllFields(newClient);
     validator.validateAllFieldsHaveCorrectType(newClient);
     validator.validatePasswordsMatch(newClient);
 }