public void ShouldPlotCommter() { var plot = new GithubPlot(); var repos = GetRepositories(); var rs = plot.PlotCommiters(repos); File.Copy(rs, "__Commiters.png", true); }
public void ShouldPlotIssues() { var repos = GetRepositories(); var plot = new GithubPlot(); var rs = plot.PlotIssues(repos); File.Copy(rs, "__Issues.png", true); }
public void ShouldPlotCommitByDay() { var mainClass = new MainClass(); var repos = mainClass.GetRepositories(); var plot = new GithubPlot(); var rs = plot.PlotCommitDays(repos); File.Copy(rs, "__Days.png", true); }
public void ShouldPlotLanguage() { var mainClass = new MainClass(); var repos = mainClass.GetRepositories(); var plot = new GithubPlot(); var rs = plot.PlotTopLanguages(repos); File.Copy(rs, "__Languages.png", true); }
public void ShouldPlotLongRun() { var mainClass = new MainClass(); var repos = mainClass.GetRepositories(); var plot = new GithubPlot(); var rs = plot.PlotLongRun(repos); rs.ToList().Select((x, i) => new { Value = x, Index = i }).ToList().ForEach(x => { File.Copy(x.Value, $"__LongRun-{x.Index}.png", true); }); }