Example #1
0
        private void ProcessScript(string filePath, string filename)
        {
            if (_scriptHistory.HasScriptBeenRun(_environment, filename) == false)
            {
                _executor.Execute(filePath);

                _scriptHistory.SetScriptHasBeenRun(_environment, filename);
            }
        }
 public void AndGivenTheScriptsHaveNoHistory()
 {
     _history = Substitute.For <IScriptHistory>();
     _history.HasScriptBeenRun("Dev", "test1.sql").Returns(true);
     _history.HasScriptBeenRun("Dev", "test2.sql").Returns(false);
 }
Example #3
0
 public void AndGivenTheScriptsHaveNoHistory()
 {
     _history = Substitute.For <IScriptHistory>();
     _history.HasScriptBeenRun("Dev", Arg.Any <string>()).Returns(false);
 }
 public void AndGivenTheScriptsHaveNoHistory()
 {
     _history = Substitute.For<IScriptHistory>();
     _history.HasScriptBeenRun("Dev", Arg.Any<string>()).Returns(false);
 }
 public void AndGivenTheScriptsHaveNoHistory()
 {
     _history = Substitute.For<IScriptHistory>();
     _history.HasScriptBeenRun("Dev", "test1.sql").Returns(true);
     _history.HasScriptBeenRun("Dev", "test2.sql").Returns(false);
 }