Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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));
 }