private void Import( string gameFolderPath, string gameExecutableFilePath, string englishLanguageFilePath, string frenchLanguageFilePath, string germanLanguageFilePath, string englishCommentaryFilePath, string frenchCommentaryFilePath, string germanCommentaryFilePath) { _dataConnection.Initialise( gameFolderPath, gameExecutableFilePath, englishLanguageFilePath, frenchLanguageFilePath, germanLanguageFilePath, englishCommentaryFilePath, frenchCommentaryFilePath, germanCommentaryFilePath); // Validate connection prior to import var validationMessages = _dataConnectionValidationService.Validate(_dataConnection); if (validationMessages.Any()) { throw new Exception("Failed to validate data connection."); // TODO: Include validation messages in exception details } // Import from files into data layer _dataImportService.Import(_dataConnection); // Import from data layer into domain layer _domainModelImportService.Import(); }
public void Import( string gameFolderPath, string gameExecutableFilePath, string englishLanguageFilePath, string frenchLanguageFilePath, string germanLanguageFilePath, string englishCommentaryFilePath, string frenchCommentaryFilePath, string germanCommentaryFilePath) { _dataConnection.Initialise( gameFolderPath, gameExecutableFilePath, englishLanguageFilePath, frenchLanguageFilePath, germanLanguageFilePath, englishCommentaryFilePath, frenchCommentaryFilePath, germanCommentaryFilePath); // Validate connection prior to import var validationMessages = _dataConnectionValidationService.Validate(_dataConnection); if (validationMessages.Any()) { throw new Exception("Failed to validate data connection."); } // Import from files into data layer _dataImportService.Import(_dataConnection); // Import from data layer into domain layer _domainModelImportService.Import(); // Import configuration changes from game executable _gameExecutableCodePatcher.ImportConfiguration(DomainModel, gameExecutableFilePath); }