private static void CheckDangerousUsage(List<CallByName> occurrences) { log.Info("CallByNameChecker - About to check Call By Name occurrences..."); DangerousUsageChecker dangerousUsageChecker = new DangerousUsageChecker(occurrences); List<CallByName> failed = dangerousUsageChecker.Check(); log.InfoFormat("CallByNameChecker - Found total of {0} Call By Names that do not pass the check...", failed.Count()); log.Info("CallByNameChecker - About to publish the results, if any..."); CheckFailurePublisher publisher = new CheckFailurePublisher(); publisher.Publish(failed); log.Info("CallByNameChecker - Results publishied..."); }
private static void CheckDangerousUsage(List <CallByName> occurrences) { log.Info("CallByNameChecker - About to check Call By Name occurrences..."); DangerousUsageChecker dangerousUsageChecker = new DangerousUsageChecker(occurrences); List <CallByName> failed = dangerousUsageChecker.Check(); log.InfoFormat("CallByNameChecker - Found total of {0} Call By Names that do not pass the check...", failed.Count()); log.Info("CallByNameChecker - About to publish the results, if any..."); CheckFailurePublisher publisher = new CheckFailurePublisher(); publisher.Publish(failed); log.Info("CallByNameChecker - Results publishied..."); }