public override void BeforeEach() { base.BeforeEach(); AllScripts = new List <SqlScript> { new SqlScript("0001.sql", "CREATE TABLE $sometable$ (Id int)") }; ScriptProvider.GetScripts(Arg.Any <Func <IDbConnection> >()).Returns(AllScripts); VersionTracker.GetExecutedScripts().Returns(new string[0]); }
public override void BeforeEach() { base.BeforeEach(); AllScripts = new List <SqlScript> { new SqlScript("0001.southwind.sql", "--LITTLE BOBBY DROP TABLES WAS HERE."), new SqlScript("0002.southwind.sql", "CREATE TABLE USERS --AGAIN") }; ScriptProvider.GetScripts(Arg.Any <Func <IDbConnection> >()).Returns(AllScripts); VersionTracker.GetExecutedScripts().Returns(new[] { "0001.southwind.sql" }); }
public override void BeforeEach() { base.BeforeEach(); AllScripts = new List <SqlScript> { new SqlScript("0001.sql", ""), new SqlScript("0004.sql", ""), new SqlScript("0002.sql", "") }; ScriptProvider.GetScripts(Arg.Any <Func <IDbConnection> >()).Returns(AllScripts); VersionTracker.GetExecutedScripts().Returns(new string[] {}); }