public LongTermSpendingChartService([NotNull] LongTermSpendingTrendAnalyser analyser) { if (analyser == null) { throw new ArgumentNullException(nameof(analyser)); } this.analyser = analyser; }
public LongTermSpendingGraphController([NotNull] LongTermSpendingTrendAnalyser analyser) { if (analyser == null) { throw new ArgumentNullException("analyser"); } this.analyser = analyser; ToggleAll = true; }
private static void Output(LongTermSpendingTrendAnalyser subject) { Console.WriteLine("{0} - {1} lines in the graph.", subject.Graph.GraphName, subject.Graph.Series.Count()); foreach (SeriesData series in subject.Graph.Series) { Console.WriteLine("[{0}] {1}", series.SeriesName, series.Description); foreach (DatedGraphPlot data in series.Plots) { Console.WriteLine(" {0} {1:C}", data.Month, data.Amount); } } }