Example #1
0
        public static IReportFactory AddTextFile(this IReportFactory factory, IMetricsFilter filter = null)
        {
            var settings = new TextFileReporterSettings();

            factory.AddTextFile(settings, filter);
            return(factory);
        }
Example #2
0
 public static IReportFactory AddTextFile(
     this IReportFactory factory,
     TextFileReporterSettings settings,
     IFilterMetrics filter = null)
 {
     factory.AddProvider(new TextFileReporterProvider(settings, filter));
     return(factory);
 }
Example #3
0
        public TextFileReporterProvider(TextFileReporterSettings settings, IFilterMetrics fitler)
        {
            if (settings == null)
            {
                throw new ArgumentNullException(nameof(settings));
            }

            _settings = settings;
            Filter    = fitler;
        }