Last active
January 22, 2019 10:58
-
-
Save MarcoNicolodi/297d3b2abe5d177e84e3566a8d40893f to your computer and use it in GitHub Desktop.
Chain of responsibility
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 EffectivenessAssessmentPending : RuleHandler { | |
public override Label Run(Request request) | |
{ | |
if(!request.HasEffectiveness) | |
{ | |
return request.Approve ? Label.ApprovedOff : Label.ReprovedOff; | |
} else { | |
return base.Run(request); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment