public void Setup() { _g = new ModulesGraph(); _a = new Module("A", "1"); _b1 = new Module("B1", "1"); _b2 = new Module("B2", "1"); _b3 = new Module("B3", "1"); _c1 = new Module("C1", "1"); _g.AddModule(_a); _g.AddDependency(_a, _b1); _g.AddDependency(_a, _b2); _g.AddDependency(_a, _b3); _g.AddDependency(_b1, _c1); }
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); }