Esempio n. 1
0
 public void Setup()
 {
     connection  = Substitute.For <IDbConnection>();
     transaction = Substitute.For <IDbTransaction>();
     connection.BeginTransaction().Returns(transaction);
     strategy = new SingleTrasactionStrategy(() => connection);
     strategy.Initialise(new ConsoleUpgradeLog());
 }
 public void Setup()
 {
     connection = Substitute.For<IDbConnection>();
     transaction = Substitute.For<IDbTransaction>();
     connection.BeginTransaction().Returns(transaction);
     strategy = new SingleTrasactionStrategy(() => connection);
     strategy.Initialise(new ConsoleUpgradeLog());
 }
Esempio n. 3
0
 public void Setup()
 {
     scripts     = new List <SqlScript>();
     connection  = Substitute.For <IDbConnection>();
     transaction = Substitute.For <IDbTransaction>();
     connection.BeginTransaction().Returns(transaction);
     strategy = new SingleTrasactionStrategy();
     strategy.Initialise(connection, new ConsoleUpgradeLog(), scripts);
 }
 public void Setup()
 {
     scripts = new List<SqlScript>();
     connection = Substitute.For<IDbConnection>();
     transaction = Substitute.For<IDbTransaction>();
     connection.BeginTransaction().Returns(transaction);
     strategy = new SingleTrasactionStrategy();
     strategy.Initialise(connection, new ConsoleUpgradeLog(), scripts);
 }