public static string TestWipeoutReportsMatchingRemovalMarkers(string report)
        {
            var redactionTool = new Redaction();

            // Make sure the database report removal is loaded.
            // This will only run once per dictionary instance therefore use the ReloadReportRemovalCache method to refresh from the database
            return(redactionTool.PerformReportWipeout(report));
        }
        public static string TestCleanBoilerPlate(string report)
        {
            var redactionTool = new Redaction();

            // Make sure the database boilerplate is loaded.
            // This will only run once per dictionary instance therefore use the ReloadBoilerPlateCache method to refresh from the database
            return(redactionTool.CleanOutAllBoilerPlate(report));
        }
        public static string WipeoutReportsMatchingRemovalMarkers(string report)
        {
            var redactionTool = new Redaction();

            // Make sure the database report removal is loaded.
            // This will only run once per dictionary instance therefore use the ReloadReportRemovalCache method to refresh from the database
            var b = RedactionDictionary.GetInstance().AttemptToLoadReportRemovalRegexFromDatabase();

            return(b ?? redactionTool.PerformReportWipeout(report));
        }
        public static string CleanBoilerPlate(string report)
        {
            var redactionTool = new Redaction();

            // Make sure the database boilerplate is loaded.
            // This will only run once per dictionary instance therefore use the ReloadBoilerPlateCache method to refresh from the database
            var b = RedactionDictionary.GetInstance().AttemptToLoadBoilerPlateRegexFromDatabase();

            return(b ?? redactionTool.CleanOutAllBoilerPlate(report));
        }
        public static string Redact(string report, string csvScrubStrings)
        {
            var redactionTool = new Redaction();

            foreach (var scrub in csvScrubStrings.Split(new[] { "," }, StringSplitOptions.RemoveEmptyEntries))
            {
                redactionTool.Scrub(scrub);
            }

            return(redactionTool.PerformRedaction(report));
        }