public void SetupBase() { var configuration = CodeVisionConfigurationSection.Load(); ConnectionString = configuration.DependencyGraphConnectionString; Connection = new SqlConnection(ConnectionString); }
public void Setup() { var connectionString = CodeVisionConfigurationSection.Load().DependencyGraphConnectionString; _loggerMock = new Mock <ILogger>(); _collector = new NugetCollector(connectionString, _loggerMock.Object); }
public void Setup() { var configuration = CodeVisionConfigurationSection.Load(); var connectionString = configuration.DependencyGraphConnectionString; _context = new DependencyGraphContext(connectionString); }
public void Setup() { WipeoutAll(); var configuration = CodeVisionConfigurationSection.Load(); _loggerMock = new Mock <ILogger>(); _collector = new DatabaseObjectGraphCollector(configuration.TargetDatabaseConnectionString, ConnectionString, _loggerMock.Object); _repository = new DatabaseObjectsGraphRepository(ConnectionString); }
public static WebConfiguration Load(HttpServerUtilityBase server) { var configuration = CodeVisionConfigurationSection.Load(); return(new WebConfiguration() { ContentRootPath = server.MapPath(configuration.ContentRootPath), IndexPath = server.MapPath(configuration.IndexPath), DependencyGraphConnectionString = configuration.DependencyGraphConnectionString }); }
public void Setup() { var configuration = CodeVisionConfigurationSection.Load(); _connectionString = configuration.DependencyGraphConnectionString; _repository = new ModulesGraphRepository(_connectionString); // A // B1 B2 B3 // C1 _g = new ModulesGraph(); var moduleA = new Module("A", "1"); var moduleB1 = new Module("B1", "1"); var moduleB2 = new Module("B2", "1"); var moduleB3 = new Module("B3", "1"); var moduleC1 = new Module("C1", "1"); _g.AddModule(moduleA); _g.AddDependency(moduleA, moduleB1); _g.AddDependency(moduleA, moduleB2); _g.AddDependency(moduleA, moduleB3); _g.AddDependency(moduleB1, moduleC1); }
static void Main(string[] args) { var commandLine = new CommandLineConfiguration(); if (!CommandLine.Parser.Default.ParseArguments(args, commandLine)) { return; } var logger = new Logger(); try { var configFile = CodeVisionConfigurationSection.Load(); if (!string.IsNullOrEmpty(commandLine.ContentPath)) { var indexer = new Indexer(logger, configFile); indexer.Index(commandLine.ContentPath, commandLine.FoldersToExclude); } if (commandLine.SolutionPaths != null) { new ModulesGraphCollector(configFile.DependencyGraphConnectionString, logger).CollectDependencies(commandLine.SolutionPaths); new NugetCollector(configFile.DependencyGraphConnectionString, logger).CollectNugets(commandLine.SolutionPaths); } if (commandLine.Databases != null) { var collector = new DatabaseObjectGraphCollector(configFile.TargetDatabaseConnectionString, configFile.DependencyGraphConnectionString, logger); collector.CollectDependencies(commandLine.Databases); } } catch (Exception ex) { logger.Log("Fatal error", ex); } }
public void Setup() { var configuration = CodeVisionConfigurationSection.Load(); _repository = new DatabaseObjectsGraphRepository(ConnectionString); }