Created
August 17, 2019 09:09
-
-
Save NMillard/601f83a66dc6526380b9fc8818742330 to your computer and use it in GitHub Desktop.
Intermediate rule
This file contains 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
namespace LearnReflection.RulesEngine.Rules { | |
public class IntermediateRule : IProficiencyRule { | |
public ProficiencyLevel CheckProficiency(int[] results) => results.Sum() < 3 | |
? ProficiencyLevel.Beginner | |
: ProficiencyLevel.Unknown; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment