public void Initialize(IInfrastructureFactory infrastructureFactory, IDatabaseModel databaseModel) { _helpProvider = infrastructureFactory.CreateHelpProvider(); _codeCompletionProvider = infrastructureFactory.CreateCodeCompletionProvider(); _navigationService = infrastructureFactory.CreateNavigationService(); _colorizingTransformer.SetParser(infrastructureFactory.CreateParser()); DocumentRepository = new SqlDocumentRepository(infrastructureFactory.CreateParser(), infrastructureFactory.CreateStatementValidator(), databaseModel); }
private SqlDocumentRepository ConfigureDocumentRepository() { var documentRepository = new SqlDocumentRepository(_infrastructureFactory.CreateParser(), _infrastructureFactory.CreateStatementValidator(), _infrastructureFactory.CreateDatabaseModel(ConfigurationProvider.ConnectionStrings[0], "Test database model")); documentRepository.UpdateStatements(_editor.Text); return(documentRepository); }
public void Initialize(IInfrastructureFactory infrastructureFactory, IDatabaseModel databaseModel) { _helpProvider = infrastructureFactory.CreateHelpProvider(); _codeCompletionProvider = infrastructureFactory.CreateCodeCompletionProvider(); _navigationService = infrastructureFactory.CreateNavigationService(); _colorizingTransformer.SetParser(infrastructureFactory.CreateParser()); DocumentRepository = new SqlDocumentRepository(infrastructureFactory.CreateParser(), infrastructureFactory.CreateStatementValidator(), databaseModel); }