private Locked<Root> getRoot(bool useResolver) { if (useResolver) return Fixtures.GetRoot(new TestResolver()); else return Fixtures.GetRoot(); }
private Locked <Root> getRoot(bool useResolver) { if (useResolver) { return(Fixtures.GetRoot(new TestResolver())); } else { return(Fixtures.GetRoot()); } }
public (Locked <Root>, Locked <Parent>, Locked <Child>) getObjects(bool useResolver) { if (useResolver) { var root = Fixtures.GetRoot(new TestResolver()); var parent = Fixtures.GetParent(root, new TestResolver()); var child = Fixtures.GetChild(parent, new TestResolver()); return(root, parent, child); } else { var root = Fixtures.GetRoot(); var parent = Fixtures.GetParent(root); var child = Fixtures.GetChild(parent); return(root, parent, child); } }