Пример #1
0
 public EncapsulateFieldUseBackingFieldRefactoringAction(
     IEncapsulateFieldRefactoringActionsProvider refactoringActionsProvider,
     IReplacePrivateUDTMemberReferencesModelFactory replaceUDTMemberReferencesModelFactory,
     IRewritingManager rewritingManager,
     INewContentAggregatorFactory newContentAggregatorFactory)
     : base(rewritingManager)
 {
     _replaceUDTMemberReferencesRefactoringAction = refactoringActionsProvider.ReplaceUDTMemberReferences;
     _replaceReferencesRefactoringAction          = refactoringActionsProvider.ReplaceReferences;
     _replaceDeclarationIdentifiers = refactoringActionsProvider.ReplaceDeclarationIdentifiers;
     _encapsulateFieldInsertNewCodeRefactoringAction = refactoringActionsProvider.EncapsulateFieldInsertNewCode;
     _replaceUDTMemberReferencesModelFactory         = replaceUDTMemberReferencesModelFactory;
     _newContentAggregatorFactory = newContentAggregatorFactory;
 }
 public EncapsulateFieldUseBackingUDTMemberRefactoringAction(
     IEncapsulateFieldRefactoringActionsProvider refactoringActionsProvider,
     IReplacePrivateUDTMemberReferencesModelFactory replaceUDTMemberReferencesModelFactory,
     IRewritingManager rewritingManager,
     INewContentAggregatorFactory newContentAggregatorFactory)
     : base(rewritingManager)
 {
     _modifyUDTRefactoringAction = refactoringActionsProvider.ModifyUserDefinedType;
     _replacePrivateUDTMemberReferencesRefactoringAction = refactoringActionsProvider.ReplaceUDTMemberReferences;
     _replaceReferencesRefactoringAction             = refactoringActionsProvider.ReplaceReferences;
     _encapsulateFieldInsertNewCodeRefactoringAction = refactoringActionsProvider.EncapsulateFieldInsertNewCode;
     _replaceUDTMemberReferencesModelFactory         = replaceUDTMemberReferencesModelFactory;
     _newContentAggregatorFactory = newContentAggregatorFactory;
 }