public HtmlDocument Spec(SpecPath path) { _document.Title = Title + ": " + path.Parts.Join("/"); var node = _specifications.FindSpecNode(path); writeNode(node); return(_document); }
public HtmlDocument Spec(SpecPath path) { _document.Title = Title + ": " + path.Parts.Join("/"); var node = _specifications.FindSpecNode(path); writeNode(node); return _document; }
public ISpecNode FindSpecNode(SpecPath path) { if (path.FullName.IsEmpty()) { return(this); } var fullName = path.FullName; return(AllNodes.FirstOrDefault(x => x.FullName == fullName)); }
public bool Equals(SpecPath other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Equals(other.FullName, FullName)); }
public SpecificationFolder ChildFolderFor(SpecPath path) { return path.Parts.Count == 1 ? _children[path.TopFolder] : _children[path.TopFolder].ChildFolderFor(path.ChildPath()); }
public ISpecNode FindSpecNode(SpecPath path) { if (path.FullName.IsEmpty()) return this; var fullName = path.FullName; return AllNodes.FirstOrDefault(x => x.FullName == fullName); }
public bool Equals(SpecPath other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return Equals(other.FullName, FullName); }