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