Skip to content

Commit

Permalink
CODE RUB: Fix Code Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hassanhabib authored Mar 25, 2023
1 parent ee53e22 commit 769d04f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions 2. Services/2.1 Foundations/2.1 Foundations.md
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ private void ValidateStudent(Student student)
);

Validate(
(Rule: IsInvalid(student.Id), Parameter: nameof(StudentAddress.Street)),
(Rule: IsInvalid(student.Name), Parameter: nameof(Student.City)),
(Rule: IsInvalid(student.Grade), Parameter: nameof(Student.ZipCode))
(Rule: IsInvalid(student.Address.Street), Parameter: nameof(StudentAddress.Street)),
(Rule: IsInvalid(student.Address.City), Parameter: nameof(Student.City)),
(Rule: IsInvalid(student.Address.ZipCode), Parameter: nameof(Student.ZipCode))
);
}
```
Expand Down

0 comments on commit 769d04f

Please sign in to comment.