public void ToggleInterfaceFlagTest_FromClassToInterface() { _classifier.IsInterface = false; var command = new MakeClassifierToInterfaceCommand(_classifier, _relationService); command.ToggleInterfaceFlag(); _relationService.Received().ChangeFromClassToInterface(_classifier); }
public ClassifierSingleCommandContext( Classifier classifier, ClassifierDictionary classifierDictionary, DeletionService deletionService, IRelationService relationService, IAskUserBeforeDeletionService askUserService, MessageSystem messageSystem) { Rename = new RenameClassifierCommand( classifier, classifierDictionary, new ClassifierValidationService(classifierDictionary), messageSystem); ChangeBaseClass = new ChangeBaseClassCommand( classifier, classifierDictionary, messageSystem); Delete = new DeleteClassifierCommand(classifier, deletionService,askUserService); Visibility = new ShowOrHideSingleObjectCommand(classifier, messageSystem); ChangeClassifierColor = new ChangeColorCommand(classifier, messageSystem); ChangeNoteColor = new ChangeNoteColorCommand(classifier.Note,messageSystem); ChangeNoteText = new ChangeNoteTextCommand(classifier.Note,messageSystem); ChangeIsInterface = new MakeClassifierToInterfaceCommand(classifier, relationService); }