// Usually, the Context allows replacing a Strategy object at runtime. public void SetStrategy(ValidationIStrategy strategy) { this.strategy = strategy; }
public ContextStrategy(ValidationIStrategy strategy) { this.strategy = strategy; }