public void SetUp() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); }
public void SetUp() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); baseFixture = new DataAccessTestsFixture(db); }
public void CannotGetCommandForStoredProcedure() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); SqlCeDatabase db = new SqlCeDatabase(testConnection.ConnectionString); db.GetStoredProcCommand("CustOrdersOrders"); }
public void SetUp() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); baseFixture = new DataAccessTestsFixture(db); }
public void TestInitialize() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); base.SetUp(); }
public void CannotGetCommandForStoredProcedure() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); SqlCeDatabase db = new SqlCeDatabase(testConnection.ConnectionString); db.GetStoredProcCommand("CustOrdersOrders"); }
public void SetUp() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); DbCommand command = db.GetSqlStringCommand("Select count(*) from region"); baseFixture = new ExecuteScalarFixture(db, command); }
public void SetUp() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); DbCommand command = db.GetSqlStringCommand("Select count(*) from region"); baseFixture = new ExecuteScalarFixture(db, command); }
public void TestInitialize() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); DbCommand insertCommand = db.GetSqlStringCommand(insertString); DbCommand queryCommand = db.GetSqlStringCommand(queryString); baseFixture = new ExecuteReaderFixture(db, insertString, insertCommand, queryString, queryCommand); }
public void SetUp() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); DbCommand insertionCommand = db.GetSqlStringCommand(insertString); DbCommand countCommand = db.GetSqlStringCommand(countQuery); baseFixture = new ExecuteNonQueryFixture(db, insertString, countQuery, insertionCommand, countCommand); }
public void SetUp() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); DbCommand insertionCommand = db.GetSqlStringCommand(insertString); DbCommand countCommand = db.GetSqlStringCommand(countQuery); baseFixture = new ExecuteNonQueryFixture(db, insertString, countQuery, insertionCommand, countCommand); }
public void TestInitialize() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); DbCommand insertCommand = db.GetSqlStringCommand(insertString); queryCommand = db.GetSqlStringCommand(queryString); baseFixture = new ExecuteReaderFixture(db, insertString, insertCommand, queryString, queryCommand); }
public void GetConnectionForTwoFilesAddsTwoConnectionsToPool() { TestConnectionString file1 = new TestConnectionString(); TestConnectionString file2 = new TestConnectionString("test2.sdf"); file2.CopyFile(); SqlCeDatabase db1 = new SqlCeDatabase(file1.ConnectionString); SqlCeDatabase db2 = new SqlCeDatabase(file2.ConnectionString); using (DbConnection connection1 = SqlCeConnectionPool.CreateConnection(db1)) { using (DbConnection connection2 = SqlCeConnectionPool.CreateConnection(db2)) {} } Assert.AreEqual(2, TestableSqlCeConnectionPool.PoolSize); SqlCeConnectionPool.CloseSharedConnections(); file2.DeleteFile(); }
public void CopyDatabase() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); }
public void TestInitialize() { testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); }
public void SetUp() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); db = new SqlCeDatabase(testConnection.ConnectionString); }
public void CopyDatabase() { TestConnectionString testConnection = new TestConnectionString(); testConnection.CopyFile(); }
public void GetConnectionForTwoFilesAddsTwoConnectionsToPool() { TestConnectionString file1 = new TestConnectionString(); TestConnectionString file2 = new TestConnectionString("test2.sdf"); file2.CopyFile(); SqlCeDatabase db1 = new SqlCeDatabase(file1.ConnectionString); SqlCeDatabase db2 = new SqlCeDatabase(file2.ConnectionString); using (DatabaseConnectionWrapper connection1 = SqlCeConnectionPool.CreateConnection(db1)) { using (DatabaseConnectionWrapper connection2 = SqlCeConnectionPool.CreateConnection(db2)) {} } Assert.AreEqual(2, TestableSqlCeConnectionPool.PoolSize); SqlCeConnectionPool.CloseSharedConnections(); file2.DeleteFile(); }
private static SqlCeDatabase GetDatabase(IDataInstrumentationProvider instrumentationProvider) { var testConnection = new TestConnectionString(); testConnection.CopyFile(); return new SqlCeDatabase(testConnection.ConnectionString, instrumentationProvider); }
public void Initialize() { TestConnectionString test = new TestConnectionString(); test.CopyFile(); }
public void Initialize() { TestConnectionString test = new TestConnectionString(); test.CopyFile(); }