public void SetUp() { _tree = new DependencyGraph<Bottle>(bot => bot.Name, bot => bot.Dependencies); var a = new Bottle("a"); a.AddDependency("d"); var b = new Bottle("b"); b.AddDependency("a"); b.AddDependency("c"); var c = new Bottle("c"); c.AddDependency("a"); _tree.RegisterItem(b); _tree.RegisterItem(c); _tree.RegisterItem(a); }
public void SetUp() { _tree = new DependencyGraph <Bottle>(bot => bot.Name, bot => bot.Dependencies); var a = new Bottle("a"); a.AddDependency("d"); var b = new Bottle("b"); b.AddDependency("a"); b.AddDependency("c"); var c = new Bottle("c"); c.AddDependency("a"); _tree.RegisterItem(b); _tree.RegisterItem(c); _tree.RegisterItem(a); }