Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CODE RUB: ShouldThrowValidationExceptionOnModifyIfStorageStudentAuditInformationNotSameAsInputStudentAuditInformationAndLogItAsync #569

Open
mtoncic opened this issue Oct 20, 2021 · 4 comments
Labels

Comments

@mtoncic
Copy link
Contributor

mtoncic commented Oct 20, 2021

ShouldThrowValidationExceptionOnModifyIfStorageStudentAuditInformationNotSameAsInputStudentAuditInformationAndLogItAsync in StudentServiceTests.Validations.Modify.cs not using SameValidationExceptionAs, therefore not checking the inner exception details.

@hassanhabib
Copy link
Owner

@mtoncic this sounds very very smart and promising. Create a PR for one test and let me take a look. If this works that's what I call a Standard-Change - you get 100 points for that because it will help infinite number of engineers write better code. thank you for the thoughtful suggestion.

@mtoncic
Copy link
Contributor Author

mtoncic commented Oct 21, 2021

@hassanhabib hahah if you just could see my reaction when I read 100 points and then realizing that I copy-pasted wrong piece of code to be replaced :)
Will create separate issue for the code simplification since it's for another test.

Maybe some other time :)

@ShriHumrudha
Copy link
Collaborator

I see two things:

  1. Student should not implemented IAduitable
  2. SameExceptionAs method should be changed to SameValidationExceptionAs

What is the proposing standard change here?

@mtoncic
Copy link
Contributor Author

mtoncic commented Oct 21, 2021

@ShriHumrudha that was the other part that I moved into other issue. There is no Standard change just small simplification :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants