Пример #1
0
 public TestDbTransaction(TestDbConnection connection)
 {
     if (connection == null)
     {
         throw new ArgumentNullException("connection");
     }
     _connection = connection;
 }
 private static ConnectedSqlCommandExecutor SutFactory()
 {
     var connection = new TestDbConnection();
     connection.Open();
     return SutFactory(connection);
 }
Пример #3
0
 public TestDbTransaction(TestDbConnection connection)
 {
     if (connection == null) throw new ArgumentNullException("connection");
     _connection = connection;
 }
 public void OpenConnectionIsAccepted()
 {
     var connection = new TestDbConnection();
     connection.Open();
     Assert.DoesNotThrow(() => SutFactory(connection));
 }