private bool ReadAndWriteAnalyzerReport(IReader reportReader) { bool successStatus = false; _analyzersData = _analyzersDataList.Find(x => x.Name.Contains(reportReader.Name)); if (_analyzersData != null) { var dataModelsList = reportReader.Read(_analyzersData.OutputFilePath); successStatus = _writer.Write(dataModelsList); } return(successStatus); }
private bool AnalyzerProcess(IStaticAnalyzers analyzer) { var successStatus = false; _analyzersData = _analyzersDataList.Find(x => x.Name.Contains(analyzer.AnalyzerName)); if (_analyzersData != null) { analyzer.AnalyzersData = _analyzersData; successStatus = analyzer.ProcessInput() && analyzer.ProcessOutput(); } return(successStatus); }