// ToDO_AP: надо бы подумать, в какой последовательности лучше задавать параметры конструктора public AddMemberDeclarationToClass( INullableValueProvider <IClassDeclaration> classProvider, IFactory <IClassDeclaration> classMemberDeclarationFactory) { _classProvider = classProvider; _classMemberDeclarationFactory = classMemberDeclarationFactory; }
// ToDo_AP: убрать зависимости selectedClassProvider и selectedVariableProvider public CreateMocksClassContextActionAvailabilityValidator( INullableValueProvider <IClassDeclaration> selectedClassProvider, INullableValueProvider <IVariableDeclaration> selectedVariableProvider, IValidator <IClassDeclaration> isClassHasTestClassAttribute, IValidator <IClassDeclaration> isClassContainsMocksClass, IValidator <IVariableDeclaration> isVariableNotNull) { _selectedClassProvider = selectedClassProvider; _selectedVariableProvider = selectedVariableProvider; _isClassHasTestClassAttribute = isClassHasTestClassAttribute; _isClassContainsMocksClass = isClassContainsMocksClass; _isVariableNotNull = isVariableNotNull; }