public MainWindowViewModel(IConnectionManager connectionManager, IFileSystemAccess fileSystemAccess, IProcessManager processManager, IDifferenceCreator differenceCreator, ISQLFileTester sQLFileTester)
        {
            if (connectionManager == null)
            {
                throw new System.ArgumentNullException("connectionManager", "connectionManager == null");
            }
            this.connectionManager = connectionManager;

            if (fileSystemAccess == null)
            {
                throw new System.ArgumentNullException("fileSystemAccess", "fileSystemAccess == null");
            }
            this.fileSystemAccess = fileSystemAccess;

            if (processManager == null)
            {
                throw new System.ArgumentNullException("processManager", "processManager == null");
            }
            this.processManager = processManager;

            if (differenceCreator == null)
            {
                throw new System.ArgumentNullException("differenceCreator", "differenceCreator == null");
            }
            this.differenceCreator = differenceCreator;

            if (sQLFileTester == null)
            {
                throw new System.ArgumentNullException("sQLFileTester", "sQLFileTester == null");
            }
            this.sQLFileTester = sQLFileTester;

            this.MainWindowViewModelCtor();
        }
        public Database(string databaseName, string databasePath, List <string> databaseIgnoredSchemas, IConnectionManager connectionManager, IFileSystemAccess fileSystemAccess, IProcessManager processManager, IDifferenceCreator differenceCreator, ISQLFileTester sqlFileTester, bool initializeData)
        {
            if (databaseName == null)
            {
                throw new System.ArgumentNullException("databaseName", "databaseName == null");
            }
            this.databaseName = databaseName;

            if (databasePath == null)
            {
                throw new System.ArgumentNullException("databasePath", "databasePath == null");
            }
            this.databasePath = databasePath;

            if (databaseIgnoredSchemas == null)
            {
                throw new System.ArgumentNullException("databaseIgnoredSchemas", "databaseIgnoredSchemas == null");
            }
            this.databaseIgnoredSchemas = databaseIgnoredSchemas;

            if (connectionManager == null)
            {
                throw new System.ArgumentNullException("connectionManager", "connectionManager == null");
            }
            this.connectionManager = connectionManager;

            if (fileSystemAccess == null)
            {
                throw new System.ArgumentNullException("fileSystemAccess", "fileSystemAccess == null");
            }
            this.fileSystemAccess = fileSystemAccess;

            if (processManager == null)
            {
                throw new System.ArgumentNullException("processManager", "processManager == null");
            }
            this.processManager = processManager;

            if (differenceCreator == null)
            {
                throw new System.ArgumentNullException("differenceCreator", "differenceCreator == null");
            }
            this.differenceCreator = differenceCreator;

            if (sqlFileTester == null)
            {
                throw new System.ArgumentNullException("sqlFileTester", "sqlFileTester == null");
            }
            this.sqlFileTester = sqlFileTester;

            this.initializeData = initializeData;

            this.DatabaseCtor();
        }
예제 #3
0
        public DatabaseDisplayData(IConnectionManager connectionManager, IFileSystemAccess fileSystemAccess, IProcessManager processManager, IDifferenceCreator differenceCreator, ISQLFileTester sQLFileTester, int Id)
        {
            if (connectionManager == null)
            {
                throw new System.ArgumentNullException("connectionManager", "connectionManager == null");
            }
            this.connectionManager = connectionManager;

            if (fileSystemAccess == null)
            {
                throw new System.ArgumentNullException("fileSystemAccess", "fileSystemAccess == null");
            }
            this.fileSystemAccess = fileSystemAccess;

            if (processManager == null)
            {
                throw new System.ArgumentNullException("processManager", "processManager == null");
            }
            this.processManager = processManager;

            if (differenceCreator == null)
            {
                throw new System.ArgumentNullException("differenceCreator", "differenceCreator == null");
            }
            this.differenceCreator = differenceCreator;

            if (sQLFileTester == null)
            {
                throw new System.ArgumentNullException("sQLFileTester", "sQLFileTester == null");
            }
            this.sQLFileTester = sQLFileTester;

            this.Id = Id;

            this.DatabaseDisplayDataCtor();
        }