public void Import(string filePath, ContainerInfo destinationContainer)
        {
            var dataProvider = new FileDataProvider(filePath);
            var xmlContent = dataProvider.Load();

            var deserializer = new PuttyConnectionManagerDeserializer(xmlContent);
            var connectionTreeModel = deserializer.Deserialize();

            var importedRootNode = connectionTreeModel.RootNodes.First();
            if (importedRootNode == null) return;
            var childrenToAdd = importedRootNode.Children.ToArray();
            destinationContainer.AddChildRange(childrenToAdd);
        }
 public void OnetimeSetup()
 {
     var fileContents = Resources.test_puttyConnectionManager_database;
     _deserializer = new PuttyConnectionManagerDeserializer(fileContents);
     var connectionTreeModel = _deserializer.Deserialize();
     var rootNode = connectionTreeModel.RootNodes.First();
     _rootImportedFolder = rootNode.Children.Cast<ContainerInfo>().First();
 }
 public void OnetimeTeardown()
 {
     _deserializer = null;
     _rootImportedFolder = null;
 }