public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); CreateStoredProcedure(); }
public void SetUp() { EnvironmentHelper.AssertOracleClientIsInstalled(); DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); }
public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); CreateTableWithGuidAndBinary(); }
public void TestInitialize() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); baseFixture = new DataAccessTestsFixture(db); }
public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); CompleteSetup(db); }
protected override void Arrange() { EnvironmentHelper.AssertOracleClientIsInstalled(); DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); Database = (OracleDatabase)factory.Create("OracleTest"); ConnectionString = Database.ConnectionString; }
public void TestInitialize() { EnvironmentHelper.AssertOracleClientIsInstalled(); DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); baseFixture = new DataAccessTestsFixture(db); }
public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); DbCommand command = db.GetSqlStringCommand("Select count(*) from region"); baseFixture = new ExecuteScalarFixture(db, command); }
public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); DbCommand insertionCommand = db.GetSqlStringCommand(insertString); DbCommand countCommand = db.GetSqlStringCommand(countQuery); baseFixture = new ExecuteNonQueryFixture(db, insertString, countQuery, insertionCommand, countCommand); }
public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); DbCommand insertCommand = db.GetSqlStringCommand(insertString); DbCommand queryCommand = db.GetSqlStringCommand(queryString); baseFixture = new ExecuteReaderFixture(db, insertString, insertCommand, queryString, queryCommand); }
public void Initialize() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); try { DeleteStoredProcedures(); } catch { } CreateStoredProcedures(); base.SetUp(); }
public void TestInitialize() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); storedProcedure = db.GetStoredProcCommand("CustOrdersOrders"); connection = db.CreateConnection(); connection.Open(); storedProcedure.Connection = connection; cache = new ParameterCache(); baseFixture = new ParameterDiscoveryFixture(storedProcedure); }
public void Initialize() { EnvironmentHelper.AssertOracleClientIsInstalled(); DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); try { DeleteStoredProcedures(); } catch { } CreateStoredProcedures(); base.SetUp(); }
public void TestInitialize() { EnvironmentHelper.AssertOracleClientIsInstalled(); DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); storedProcedure = db.GetStoredProcCommand("NWND_CustOrdersOrders"); connection = db.CreateConnection(); connection.Open(); storedProcedure.Connection = connection; cache = new ParameterCache(); baseFixture = new ParameterDiscoveryFixture(storedProcedure); }
public void Initialize() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); // ensure that stored procedures are dropped before trying to create them try { DeleteStoredProcedures(); } catch { } CreateStoredProcedures(); base.SetUp(); }
public void SetUp() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); db = factory.Create("OracleTest"); try { DeleteStoredProcedures(); } catch {} CreateStoredProcedures(); baseFixture = new TransactionScopeFixture(db); baseFixture.Cleanup(); }
public void CanInsertNullStringParameter() { DatabaseProviderFactory factory = new DatabaseProviderFactory(OracleTestConfigurationSource.CreateConfigurationSource()); Database db = factory.Create("OracleTest"); using (DbConnection connection = db.CreateConnection()) { connection.Open(); using (DbTransaction transaction = connection.BeginTransaction()) { string sqlString = "insert into Customers (CustomerID, CompanyName, ContactName) Values (:id, :name, :contact)"; DbCommand insert = db.GetSqlStringCommand(sqlString); db.AddInParameter(insert, ":id", DbType.Int32, 1); db.AddInParameter(insert, ":name", DbType.String, "fee"); db.AddInParameter(insert, ":contact", DbType.String, null); db.ExecuteNonQuery(insert, transaction); transaction.Rollback(); } } }
public void SetUp() { EnvironmentHelper.AssertOracleClientIsInstalled(); configurationSource = OracleTestConfigurationSource.CreateConfigurationSource(); }
public void SetUp() { configurationSource = OracleTestConfigurationSource.CreateConfigurationSource(); }