public void AfterProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     try
     {
         this.CopyLogoToTarget();
         TimeSpan span = new TimeSpan(DateTime.Now.Ticks).Subtract(new TimeSpan(this.start.Ticks));
         this.AddFooterToDocument(processingEvent.RootElement, processingEvent.Resource, span.Ticks);
     }
     catch (Exception e)
     {
         Console.WriteLine("Failed to write page footer. {0}", e.Message);
     }
 }
 public void AfterProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     try
     {
         this.Target.Write(processingEvent.Resource, XML_DECLARATION + processingEvent.RootElement.ToXml());
         var description = this.Target.ResolvedPathFor(processingEvent.Resource);
         if (!string.IsNullOrEmpty(description))
         {
             Console.WriteLine("Processed: {0}", description);
         }
     }
     catch (Exception e)
     {
         throw new Exception("Failed to write results to '" + processingEvent.Resource.Path + "'.", e);
     }
 }
        public void AfterProcessingSpecification(SpecificationProcessingEvent processingEvent)
        {
            try
            {
                Element span = new Element("span").AddStyleClass("breadcrumbs");
                this.AppendBreadcrumbsTo(span, processingEvent.Resource);

                if (span.HasChildren)
                {
                    this.GetDocumentBody(processingEvent.RootElement).PrependChild(span);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
            }
        }
 public void BeforeProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     Resource resource = processingEvent.Resource;
     var javaScriptPath = resource.GetRelativePath(m_StylesheetResource).Replace("\\", "/");
     m_Link.SetAttributeValue(XName.Get("href"), javaScriptPath);
 }
 public void AfterProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
 }
 public void BeforeProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     this.start = DateTime.Now;
 }
 public void BeforeProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     // No action needed beforehand
 }
 public void BeforeProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     // No action required
 }
 /// <summary>
 /// Handles the SpecificationProcessing event that is triggered before the specification is processed
 /// </summary>
 public void BeforeProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
 }
 /// <summary>
 /// Handles the SpecificationProcessed event that is triggered after the specification is processed
 /// </summary>
 public void AfterProcessingSpecification(SpecificationProcessingEvent processingEvent)
 {
     TestLog.AttachXHtml(processingEvent.Resource.Name, processingEvent.RootElement.ToXml());
 }