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

            var node = _specifications.FindSpecNode(path);

            writeNode(node);

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

            var node = _specifications.FindSpecNode(path);

            writeNode(node);

            return _document;
        }
Exemplo n.º 3
0
        public ISpecNode FindSpecNode(SpecPath path)
        {
            if (path.FullName.IsEmpty())
            {
                return(this);
            }

            var fullName = path.FullName;

            return(AllNodes.FirstOrDefault(x => x.FullName == fullName));
        }
Exemplo n.º 4
0
 public bool Equals(SpecPath other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(other.FullName, FullName));
 }
Exemplo n.º 5
0
 public SpecificationFolder ChildFolderFor(SpecPath path)
 {
     return path.Parts.Count == 1
                ? _children[path.TopFolder]
                : _children[path.TopFolder].ChildFolderFor(path.ChildPath());
 }
Exemplo n.º 6
0
        public ISpecNode FindSpecNode(SpecPath path)
        {
            if (path.FullName.IsEmpty()) return this;

            var fullName = path.FullName;
            return AllNodes.FirstOrDefault(x => x.FullName == fullName);
        }
Exemplo n.º 7
0
 public bool Equals(SpecPath other)
 {
     if (ReferenceEquals(null, other)) return false;
     if (ReferenceEquals(this, other)) return true;
     return Equals(other.FullName, FullName);
 }
Exemplo n.º 8
0
 public SpecificationFolder ChildFolderFor(SpecPath path)
 {
     return path.Parts.Count == 1
                ? _children[path.TopFolder]
                : _children[path.TopFolder].ChildFolderFor(path.ChildPath());
 }