public void SetUp() { var foreignKeyMapper = new ForeignKeyMapper(); var columnMapper = new ColumnMapper(); var indexMapper = new IndexMapper(); _databaseSchemaReader = new GigaWebSolution.DatabaseSchemaReader.SchemaReader(foreignKeyMapper, columnMapper, indexMapper); }
public void SetUp() { SqlServerDatabaseHelper.InitializeDatabase(); SqlServerDatabaseHelper.CreateUser(Username, Password); var connectionstringBuilderFactory = new ConnectionstringBuilderFactory(); var connectionstringBuilder = new ConnectionstringBuilder.ConnectionstringBuilder(connectionstringBuilderFactory); var indexMapper = new IndexMapper(); var foreignKeyMapper = new ForeignKeyMapper(); var columnMapper = new ColumnMapper(); var schemaReader = new SchemaReader(foreignKeyMapper, columnMapper, indexMapper); var connectionstringArgumentsMapper = new ConnectionstringArgumentsMapper(); var databaseSchemaExplorer = new DatabaseSchemaExplorer(connectionstringBuilder, schemaReader); _databaseSchemaExplorerController = new DatabaseSchemaExplorerController(connectionstringArgumentsMapper, databaseSchemaExplorer); }
private void InitializeDatabaseSchemaReader() { var foreignKeyMapper = new ForeignKeyMapper(); var columnMapper = new ColumnMapper(); var indexMapper = new IndexMapper(); _databaseSchemaReader = new GigaWebSolution.DatabaseSchemaReader.SchemaReader(foreignKeyMapper, columnMapper, indexMapper); }