Created
June 12, 2021 07:10
-
-
Save ssukhpinder/48e89a9971e31f5c0527857229dbdd02 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
public class Manager : ClaimApprover | |
{ | |
public override void ApproveRequest(Claim claim) | |
{ | |
if (claim.amount >= 100 && claim.amount <= 1000) | |
{ | |
System.Console.WriteLine($"Claim reference {claim.Id} with amount {claim.amount} is approved by Manager"); | |
} | |
else if (claimApprover != null) | |
{ | |
claimApprover.ApproveRequest(claim); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment