Skip to content

Instantly share code, notes, and snippets.

@MarcoNicolodi
Last active January 22, 2019 10:58
Show Gist options
  • Save MarcoNicolodi/297d3b2abe5d177e84e3566a8d40893f to your computer and use it in GitHub Desktop.
Save MarcoNicolodi/297d3b2abe5d177e84e3566a8d40893f to your computer and use it in GitHub Desktop.
Chain of responsibility
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