Ejemplo n.º 1
0
        /// <summary>
        /// This method should return all IBuildDetailNodes for this factory.
        /// </summary>
        /// <param name="view">a reference to IBuildDetailsView</param>
        /// <returns>array of IBuildDetailNodes</returns>
        public IBuildDetailNode[] CreateNodes(IBuildDetailView view)
        {
            var p = new Paragraph();

            if (string.IsNullOrEmpty(_codeCoveragePath))
            {
                p.Inlines.Add(new Italic(new Run("Build Still Running - Code Coverage Report Not Available")));
            }
            else
            {
                var hyperlink = new Hyperlink();
                hyperlink.Inlines.Add("DotCover Report");
                hyperlink.NavigateUri      = new Uri(_codeCoveragePath);
                hyperlink.RequestNavigate += HyperlinkRequestNavigate;
                p.Inlines.Add(hyperlink);
            }

            return(new IBuildDetailNode[] {
                new MySectionNode()
                {
                    SectionName = "MySection",
                    Content = p
                }
            });
        }
Ejemplo n.º 2
0
 /// <summary>
 /// This method should return all IBuildDetailSections for this factory.
 /// </summary>
 /// <param name="view">a reference to IBuildDetailsView</param>
 /// <returns>array of IBuildDetailSections</returns>
 public IBuildDetailSection[] CreateSections(IBuildDetailView view)
 {
     return(new IBuildDetailSection[] { new MySection() });
 }