public void Validate(ConfigCommand command, Production production) { var oldProduction = _production; try { _production = production; command.Apply(this); } finally { _production = oldProduction; } }
public void Write(ConfigCommand command, Production production) { _production = production; command.Apply(this); }