Example #1
0
        public HtmlDocument Spec(SpecPath path)
        {
            _document.Title = Title + ":  " + path.Parts.Join("/");

            var node = _specifications.FindSpecNode(path);

            writeNode(node);

            return(_document);
        }
Example #2
0
        public HtmlDocument Spec(SpecPath path)
        {
            _document.Title = Title + ":  " + path.Parts.Join("/");

            var node = _specifications.FindSpecNode(path);

            writeNode(node);

            return _document;
        }
Example #3
0
        public ISpecNode FindSpecNode(SpecPath path)
        {
            if (path.FullName.IsEmpty())
            {
                return(this);
            }

            var fullName = path.FullName;

            return(AllNodes.FirstOrDefault(x => x.FullName == fullName));
        }
Example #4
0
 public bool Equals(SpecPath other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.FullName, FullName));
 }
Example #5
0
 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);
        }
Example #7
0
 public bool Equals(SpecPath other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.FullName, FullName);
 }
Example #8
0
 public SpecificationFolder ChildFolderFor(SpecPath path)
 {
     return path.Parts.Count == 1
                ? _children[path.TopFolder]
                : _children[path.TopFolder].ChildFolderFor(path.ChildPath());
 }