Facts - NMehralizadeh/RuleEngineCore GitHub Wiki
Every condition attribute uses some facts that you put into the Facts
object. For this reason, you must make an instantiate of Facts
class and put everything that you will need in condition block. And you will pass these facts when you want execute a rule.
Notice: If you forget to put a key value in facts and ask facts object to get this value, it must raise an error.
var facts = new Facts();
facts.Put("Birthdate", new DateTime(1988, 11, 23));
facts.Put("NationalId", "1234567890");
Rule MyRule = new Rule(new IdentificationRule());
MyRule.Execute(facts);