public RenameMemberCommand( INamed namedObject, IValidateNameService validateNameService, MessageSystem messageSystem) { _namedObject = namedObject; Requires(validateNameService != null); Requires(messageSystem != null); _validateNameService = validateNameService; _messageSystem = messageSystem; }
protected override void Init() { _validationService = For<IValidateNameService>(); _messageSystem = For<MessageSystem>(); _classifierDictionary = CreateDictionaryWithoutSystemTypes(); _classifier = new Classifier("Integer"); _renameCommand = new RenameClassifierCommand( _classifier, _classifierDictionary, _validationService, _messageSystem); _newName = RandomString(); }