FotisZoumpos / university

0 stars 0 forks source link

Refactor create and update methods #1

Open kelaidisc opened 1 month ago

kelaidisc commented 1 month ago

Replace method argument Professor with the proper DTO = Data Transfer Object In the dto that you will create add all the constraints that are needed for creating / updating To work simultaneously for both methods you will need to use validation constraint Groups The way to go is CreateGroup and UpdateGroup

You can google and search for every new subject but don't abuse it to "copy" validation rules from other projects After replacing the argument you need to:

  1. Refactor the actual method
  2. Fix / Remove / Write new tests ?
kelaidisc commented 1 month ago

Continue with this in the implement-professor-service branch