public string RunScript(Macro m, Ledger l, MacroScriptParameters parameters = null) { var scriptRunner = new MacroScriptRunner(); var script = m.Script; if (parameters != null) { script = parameters.ReplaceParameters(m); } return(scriptRunner.RunScript(script, l, Context)); }
public MacroProxy(MacroScriptRunner runner, Ledger ledger, AccountingDbContext context) { _runner = runner; _ledger = ledger; _context = context; }