public void Write(TrendRequest trendRequest, TrendMarkerResult trendMarkerResult)
 {
     foreach (var data in trendRequest.Data)
     {
         _csvWriter.AddLine(data.AreaCode, data.Year, data.Value, data.Denominator, data.Count);
     }
     _csvWriter.AddLine("", "", "", "", "", trendMarkerResult.ChiSquare, trendMarkerResult.Slope, trendMarkerResult.Intercept,
         trendMarkerResult.Marker, trendMarkerResult.NumberOfPointsUsedInCalculation, trendMarkerResult.Message);
 }
        private void WriteResult(TrendMarkerResult markerResult)
        {
            Console.WriteLine("Is Significant? " + markerResult.IsSignificant);

            Console.WriteLine("ChiSquare: " + markerResult.ChiSquare);

            Console.WriteLine(markerResult.Slope.HasValue
                ? "Slope: " + markerResult.Slope.Value
                : "No Slope");

            Console.WriteLine(markerResult.Intercept.HasValue
                ? "Intercept: " + markerResult.Intercept.Value
                : "No Intercept");


            Console.WriteLine("Trend Marker: {0}", markerResult.Marker);

            Console.WriteLine("Number of Points used: {0}", markerResult.NumberOfPointsUsedInCalculation);
        }
 private TrendMarkerLabel GetLabel(TrendMarkerResult trendMarkerResult)
 {
     return _trendMarkerLabelProvider.GetLabel(trendMarkerResult.Marker);
 }