public void CreateCommand() { string theConnectionString = "Data Source=localhost;database=test"; IDatabaseEngine database = new MSSQLDatabaseEngine(theConnectionString); SqlCommand command = (SqlCommand) database.GetCommand(); }
public void CreateConnection() { string theConnectionString = "Data Source=localhost;database=test"; IDatabaseEngine database = new MSSQLDatabaseEngine(theConnectionString); SqlConnection connection = (SqlConnection) database.GetConnection(); Assert.AreEqual(theConnectionString, connection.ConnectionString); }