/// <summary> /// Initializes a new instance of the <see cref="IssueReportCreator"/> class. /// </summary> /// <param name="log">Cake log instance.</param> /// <param name="settings">Settings to use.</param> public IssueReportCreator( ICakeLog log, CreateIssueReportSettings settings) { log.NotNull(nameof(log)); settings.NotNull(nameof(settings)); this.log = log; this.settings = settings; }
public static FilePath CreateIssueReport( this ICakeContext context, IEnumerable <IIssue> issues, IIssueReportFormat reportFormat, CreateIssueReportSettings settings) { context.NotNull(nameof(context)); // ReSharper disable once PossibleMultipleEnumeration issues.NotNullOrEmptyElement(nameof(issues)); reportFormat.NotNull(nameof(reportFormat)); settings.NotNull(nameof(settings)); var issueReportCreator = new IssueReportCreator(context.Log, settings); // ReSharper disable once PossibleMultipleEnumeration return(issueReportCreator.CreateReport(issues, reportFormat)); }