public Executor(ILogger _logger, FileAnalyzer _fileAnalyzer, Dictionary <string, IPattern> patternRepository) { logger = _logger; fileAnalyzer = _fileAnalyzer; PatternRepository = patternRepository; KlineList = new List <Kline>(); }
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); }
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); }