private void ValidateInitialComponentModel(MoveMultipleToFolderModel model)
        {
            var firstStaleAffectedModules = model.Targets
                                            .FirstOrDefault(module => _state.IsNewOrModified(module.QualifiedModuleName));

            if (firstStaleAffectedModules != null)
            {
                throw new AffectedModuleIsStaleException(firstStaleAffectedModules.QualifiedModuleName);
            }
        }
 protected abstract MoveMultipleToFolderModel ModifiedComponentModel(MoveMultipleToFolderModel model, object parameter);
Exemplo n.º 3
0
 protected override MoveMultipleToFolderModel ModifiedComponentModel(MoveMultipleToFolderModel model, object parameter)
 {
     return(_moveToFolderInteraction.UserModifiedModel(model));
 }
Exemplo n.º 4
0
 private MoveMultipleToFolderViewModel TestViewModel(MoveMultipleToFolderModel model)
 {
     return(new MoveMultipleToFolderViewModel(model));
 }
 protected override MoveMultipleToFolderModel ModifiedComponentModel(MoveMultipleToFolderModel model, object parameter)
 {
     var(targetFolder, node) = (ValueTuple <string, ICodeExplorerNode>)parameter;
     model.TargetFolder      = targetFolder;
     return(model);
 }