Exemplo n.º 1
0
        public static FilePath CreateIssueReport(
            this ICakeContext context,
            IEnumerable <IIssueProvider> issueProviders,
            IIssueReportFormat reportFormat,
            ICreateIssueReportFromIssueProviderSettings settings)
        {
            context.NotNull(nameof(context));
            reportFormat.NotNull(nameof(reportFormat));

            // ReSharper disable once PossibleMultipleEnumeration
            issueProviders.NotNullOrEmptyOrEmptyElement(nameof(issueProviders));

            var issueReportCreator = new IssueReportCreator(context.Log);

            // ReSharper disable once PossibleMultipleEnumeration
            return(issueReportCreator.CreateReport(issueProviders, reportFormat, settings));
        }
Exemplo n.º 2
0
        public static FilePath CreateIssueReport(
            this ICakeContext context,
            IIssueProvider issueProvider,
            IIssueReportFormat reportFormat,
            CreateIssueReportSettings settings)
        {
            context.NotNull(nameof(context));
            reportFormat.NotNull(nameof(reportFormat));

            issueProvider.NotNull(nameof(issueProvider));

            var issueReportCreator = new IssueReportCreator(context.Log, settings);

            return(issueReportCreator.CreateReport(new List <IIssueProvider> {
                issueProvider
            }, reportFormat));
        }