public FlywayUpdater(IFlywayFileProvider provider, IFlywayScriptRunner runner, IFlywayTestRunner testRunner) { this._provider = provider ?? throw new ArgumentNullException(nameof(provider)); this._runner = runner ?? throw new ArgumentNullException(nameof(runner)); this._testRunner = testRunner; this._callbacks = new FlywayCallbacks(provider); }
public static FlywayUpdater BuildFlywayUpdater(IFlywayFileProvider provider, IFlywayScriptRunner exec = null, IFlywayTestRunner testRunner = null) { exec = exec ?? new Mock <IFlywayScriptRunner>().Object; testRunner = testRunner ?? BuildFlywayTestRunner(provider.Conf); return(new FlywayUpdater(provider, exec, testRunner)); }
public static FlywayUpdater BuildFlywayUpdater(Dictionary <string, string> values = null, IFlywayScriptRunner exec = null) { var provider = BuildFlywayFileProvider(values); return(BuildFlywayUpdater(provider, exec)); }