Created
June 12, 2021 07:17
-
-
Save ssukhpinder/6bcb837749e13c264260e64fc3c33b15 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClaimApprover junior = new Manager(); | |
ClaimApprover sukhpinder = new Manager(); | |
ClaimApprover singh = new SeniorManager(); | |
junior.SetHierarchy(sukhpinder); | |
sukhpinder.SetHierarchy(singh); | |
Claim c1 = new Claim() { amount = 999, Id = 1001 }; | |
Claim c2 = new Claim() { amount = 10001, Id = 1002 }; | |
junior.ApproveRequest(c1); | |
sukhpinder.ApproveRequest(c2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment