예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GridItem" /> class.
 /// </summary>
 /// <param name="VariableName">The name of the FastStats variable to display data for in the grid (required).</param>
 /// <param name="Detail">Whether to show codes or descriptions for this grid item (required).</param>
 /// <param name="Description">The description to use for this item (required).</param>
 public GridItem(string VariableName = default(string), DetailEnum Detail = default(DetailEnum), string Description = default(string))
 {
     // to ensure "VariableName" is required (not null)
     if (VariableName == null)
     {
         throw new InvalidDataException("VariableName is a required property for GridItem and cannot be null");
     }
     else
     {
         this.VariableName = VariableName;
     }
     // to ensure "Detail" is required (not null)
     if (Detail == null)
     {
         throw new InvalidDataException("Detail is a required property for GridItem and cannot be null");
     }
     else
     {
         this.Detail = Detail;
     }
     // to ensure "Description" is required (not null)
     if (Description == null)
     {
         throw new InvalidDataException("Description is a required property for GridItem and cannot be null");
     }
     else
     {
         this.Description = Description;
     }
 }
예제 #2
0
		public String GetDetail(String name, String log, DetailEnum detail)
		{
			String xsl = null;

			if (detail == DetailEnum.Summary)
			{
				return GetSummary(name, log);
			}
			else if (detail == DetailEnum.Compilation)
			{
				xsl = GetXslFullFileName("compile.xsl");
			}
			else if (detail == DetailEnum.Modifications)
			{
				xsl = GetXslFullFileName("modifications.xsl");
			}
			else if (detail == DetailEnum.UnitTestsDetail)
			{
				xsl = GetXslFullFileName("unittests.xsl");
			}
			else if (detail == DetailEnum.UnitTestsSummary)
			{
				xsl = GetXslFullFileName("AlternativeNUnitDetails.xsl");
			}

			String content = cruiseManager.GetLog(name, log);

			XPathDocument document = new XPathDocument(new StringReader(content));

			return logTransformer.Transform(document, xsl);
		}
예제 #3
0
        public String GetDetail(String name, String log, DetailEnum detail)
        {
            String xsl = null;

            if (detail == DetailEnum.Summary)
            {
                return(GetSummary(name, log));
            }
            else if (detail == DetailEnum.Compilation)
            {
                xsl = GetXslFullFileName("compile.xsl");
            }
            else if (detail == DetailEnum.Modifications)
            {
                xsl = GetXslFullFileName("modifications.xsl");
            }
            else if (detail == DetailEnum.UnitTestsDetail)
            {
                xsl = GetXslFullFileName("unittests.xsl");
            }
            else if (detail == DetailEnum.UnitTestsSummary)
            {
                xsl = GetXslFullFileName("AlternativeNUnitDetails.xsl");
            }

            String content = cruiseManager.GetLog(name, log);

            XPathDocument document = new XPathDocument(new StringReader(content));

            return(logTransformer.Transform(document, xsl));
        }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse2011" /> class.
 /// </summary>
 /// <param name="detail">detail (required).</param>
 public InlineResponse2011(DetailEnum detail = default(DetailEnum))
 {
     // to ensure "detail" is required (not null)
     if (detail == null)
     {
         throw new InvalidDataException("detail is a required property for InlineResponse2011 and cannot be null");
     }
     else
     {
         this.Detail = detail;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse201" /> class.
 /// </summary>
 /// <param name="detail">detail (required).</param>
 /// <param name="cancelled">cancelled (required).</param>
 public InlineResponse201(DetailEnum detail = default(DetailEnum), bool?cancelled = default(bool?))
 {
     // to ensure "detail" is required (not null)
     if (detail == null)
     {
         throw new InvalidDataException("detail is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Detail = detail;
     }
     // to ensure "cancelled" is required (not null)
     if (cancelled == null)
     {
         throw new InvalidDataException("cancelled is a required property for InlineResponse201 and cannot be null");
     }
     else
     {
         this.Cancelled = cancelled;
     }
 }
예제 #6
0
        public void ViewSpecific(String name, String log, DetailEnum detail)
        {
            PropertyBag.Add("summary", contentTransformation.GetDetail(name, log, detail));

            RenderView("partial_summary");
        }
예제 #7
0
		public void ViewSpecific(String name, String log, DetailEnum detail)
		{
			PropertyBag.Add("summary", contentTransformation.GetDetail(name, log, detail));

			RenderView("partial_summary");
		}