AjRools.Expert.Facts.PropertyIsFact.IsSatisfiedByContext C# (CSharp) Méthode

IsSatisfiedByContext() public méthode

public IsSatisfiedByContext ( Context context ) : bool
context Context
Résultat bool
        public bool IsSatisfiedByContext(Context context)
        {
            return this.IsSatisfiedByObject(context.GetValue(this.name));
        }

Usage Example

 public void IsSatisfiedByStringInContext()
 {
     Context context = new Context();
     context.SetValue("p", "123");
     PropertyIsFact fact = new PropertyIsFact("p", "Length", 3);
     fact.IsSatisfiedByContext(context);
 }