Ejemplo n.º 1
0
 public CryptoRuleTester()
 {
     InitializeComponent();
     _logger         = new Logger("CryptoTesterLog");
     fileAnalyzer    = new FileAnalyzer(_logger);
     settingsBuilder = new SettingsBuilder(_logger);
     Config.LoadConfiguration(_logger, true);
     Output   = new TesterOutput();
     Output   = GenerateDefaultSettings(Output);
     patterns = new Dictionary <string, IPattern>();
     executor = new Executor(_logger, fileAnalyzer, patterns);
 }
Ejemplo n.º 2
0
        private void buttonGo_Click(object sender, EventArgs e)
        {
            _logger         = new Logger("PatternTester");
            fileAnalyzer    = new FileAnalyzer(_logger);
            settingsBuilder = new SettingsBuilder(_logger);
            Config.LoadConfiguration(_logger, true);

            Output = UpdateOutputObject(Output);
            Path   = filePathTextBox.Text;
            var isValid = ValidateSettings(Output);

            patterns = settingsBuilder.GenerateSettings(Output);
            executor.RunTest(_logger, patterns, Path);
        }