public Help(ICommandRegistry commandRegistry, IPhraseDictionary phraseDictionary) { if (commandRegistry == null) { throw new ArgumentNullException(nameof(commandRegistry)); } if (phraseDictionary == null) { throw new ArgumentNullException(nameof(phraseDictionary)); } _commandRegistry = commandRegistry; _phraseDictionary = phraseDictionary; }
public Var(VariableCollection variables, IPhraseDictionary phraseDictionary) { if (variables == null) { throw new ArgumentNullException(nameof(variables)); } if (phraseDictionary == null) { throw new ArgumentNullException(nameof(phraseDictionary)); } _variables = variables; _phraseDictionary = phraseDictionary; }