/// <summary>
        /// Initializes a new instance of the <see cref="StandaloneQualityVerificationService"/> class.
        /// </summary>
        /// <param name="verificationReportBuilder">The verification report builder.</param>
        /// <param name="openDatasetFactory">Factory method that creates the appropriate
        /// IOpenDataset implementation.</param>
        public StandaloneQualityVerificationService(
            [NotNull] IVerificationReportBuilder verificationReportBuilder,
            Func <IDatasetContext, IOpenDataset> openDatasetFactory)
        {
            Assert.ArgumentNotNull(verificationReportBuilder,
                                   nameof(verificationReportBuilder));

            _verificationReportBuilder = verificationReportBuilder;
            _openDatasetFactory        = openDatasetFactory;
        }
        public BufferedIssueWriter(
            [NotNull] IVerificationReportBuilder verificationReportBuilder,
            [NotNull] IDatasetContext datasetContext,
            [NotNull] IQualityConditionObjectDatasetResolver datasetResolver,
            [CanBeNull] IIssueRepository issueRepository,
            [CanBeNull] Func <IObjectDataset, string> getAlternateKeyField,
            int maximumErrorCount  = 10000,
            int maximumVertexCount = 1000000)
        {
            Assert.ArgumentNotNull(verificationReportBuilder,
                                   nameof(verificationReportBuilder));
            Assert.ArgumentNotNull(datasetContext, nameof(datasetContext));
            Assert.ArgumentNotNull(datasetResolver, nameof(datasetResolver));

            _verificationReportBuilder = verificationReportBuilder;
            _datasetContext            = datasetContext;
            _issueRepository           = issueRepository;
            _getAlternateKeyField      = getAlternateKeyField;
            _maximumErrorCount         = maximumErrorCount;
            _maximumVertexCount        = maximumVertexCount;
            _datasetResolver           = datasetResolver;
        }