private void buildFixtureSelectors(FixtureLibrary library, Cache <string, NamespaceSelector> namespaces, Cache <string, FixtureSelector> fixtures) { library.AllFixtures.Each(x => { var item = new FixtureSelector(x); fixtures[x.Name] = item; namespaces[x.Namespace].Add(item); }); }
private void buildFixtureSelectors(FixtureLibrary library, Cache<string, NamespaceSelector> namespaces, Cache<string, FixtureSelector> fixtures) { library.AllFixtures.Each(x => { var item = new FixtureSelector(x); fixtures[x.Name] = item; namespaces[x.Namespace].Add(item); }); }
public void SetUp() { dto = new FixtureDto() { Fullname = "the full name", Name = "Math", Namespace = "some namespace" }; selector = new FixtureSelector(dto); }
public void SetUp() { selector = new NamespaceSelector("NS1"); child1 = new NamespaceSelector("NS1-1"); child2 = new NamespaceSelector("NS1-2"); f1 = new FixtureSelector(new FixtureDto() {Name = "fixture1"}); f2 = new FixtureSelector(new FixtureDto() {Name = "fixture2"}); f3 = new FixtureSelector(new FixtureDto() {Name = "fixture3"}); f4 = new FixtureSelector(new FixtureDto() {Name = "fixture4"}); f5 = new FixtureSelector(new FixtureDto() {Name = "fixture5"}); selector.Add(child1); selector.Add(child2); selector.Add(f1); child1.Add(f2); child1.Add(f3); child2.Add(f4); child2.Add(f5); }