OtripleS
OtripleS copied to clipboard
CODE RUB: Exam Fee Status Enum Validation
Reference: https://github.com/hassanhabib/OtripleS/pull/499
@hassanhabib & @ShriHumrudha How do I work with this issue and similar issues #505 #506 #507 #508 & #510? Looking for your advice!
The reference is mentioned in the first comment - #499
May I request a little guidance for any one from these above referenced specific issues. They are different in implementation, which I am still working on to understand.
In all of them below method is missing
public async void ShouldThrowValidationExceptionOnCreateWhenEntityIsInvalidAndLogItAsync(){}
@hassanhabib I am looking for some suggestions!
May I request a little guidance for anyone from these above referenced specific issues. They are different in implementation, which I am still working on it to understand.
In all of them below method is missing
public async void ShouldThrowValidationExceptionOnCreateWhenEntityIsInvalidAndLogItAsync(){}
@hassanhabib I am looking for some suggestions!
May I request a little guidance for anyone from these above referenced specific issues. They are different in implementation, which I am still working on it to understand. In all of them below method is missing
public async void ShouldThrowValidationExceptionOnCreateWhenEntityIsInvalidAndLogItAsync(){}
@arafat-pro so the validations of enums is a new Standard that was introduced a little over a year ago. Some of our codebase in OtripleS didn't catch up to that yet, hence we have all these issues to address them.
The above mentioned issues all have the same solution, so is the new standard for validations. But these are two different issues.
Don't include enum validation as part of the basic structural validations that we do with InvalidEntityException
.
They should have their own tests such as:
ShouldThrowValidationExceptionOnAddIfStatusIsInvalidAndLogitAsync
that's an individual test that has it's own issues.
Hope this helps.