private MySQLDataStore GetTestStore(bool verifyExists = true) { var info = new MySQLConnectionInfo("173.10.132.188", 3306, "CropPerformance", "SolutionEngine", "rtx64"); // var info = new MySQLConnectionInfo("192.168.10.246", 3306, "TestDB", "root", "password"); var store = new MySQLDataStore(info); if (verifyExists) { if (store.StoreExists) { store.DeleteStore(); } if (!store.StoreExists) { store.CreateStore(); } else { store.EnsureCompatibility(); } } return(store); }
public void Init() { SuperInit(); // If we manage to connect to the database with the user // and password above it is our test database, and run // these tests. If anything goes wrong, ignore these // tests. try { database = new MySQLManager(connect); // clear db incase to ensure we are in a clean state ClearDB(database); regionDb = new MySQLDataStore(); regionDb.Initialise(connect); db = new MySQLEstateStore(); db.Initialise(connect); } catch (Exception e) { m_log.Error("Exception {0}", e); Assert.Ignore(); } }
private MySQLDataStore makeDataStore() { var datastore = new MySQLDataStore(m_ConnectionString); datastore.QueryResolver.ScriptAssembly = "NFX.ITest"; return(datastore); }
public void Init() { SuperInit(); // If we manage to connect to the database with the user // and password above it is our test database, and run // these tests. If anything goes wrong, ignore these // tests. try { database = new MySQLManager(connect); // this is important in case a previous run ended badly ClearDB(database); db = new MySQLDataStore(); db.Initialise(connect); } catch (Exception e) { m_log.Error("Exception {0}", e); Assert.Ignore(); } }
public void ManualDS_ASYNC_QueryInsertQuery() { using (var store = new MySQLDataStore(getConnectString())) { store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.ASYNC_QueryInsertQuery(store); } }
public void ManualDS_InsertThenUpsert_TypedRow() { using (var store = new MySQLDataStore(getConnectString())) { store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.InsertThenUpsert_TypedRow(store); } }
public void ManualDS_ASYNC_InsertInTransaction_Commit_TypedRow() { using (var store = new MySQLDataStore(getConnectString())) { store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.ASYNC_InsertInTransaction_Commit_TypedRow(store); } }
public void ManualDS_ASYNC_Populate_OpenCursor() { using (var store = new MySQLDataStore(getConnectString())) { store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.Populate_ASYNC_OpenCursor(store); clearAllTables(); } }
public void ManualDS_UpsertWithPredicate() { using (var store = new MySQLDataStore(getConnectString())) { store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.UpsertWithPredicate(store); clearAllTables(); } }
public void ManualDS_TypedRowTestVariousTypes() { using (var store = new MySQLDataStore(getConnectString())) { store.StringBool = false; store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.TypedRowTestVariousTypes(store); } }
public void ManualDS_GetSchemaAndTestFullGDID() { using (var store = new MySQLDataStore(getConnectString())) { store.StringBool = false; store.FullGDIDS = true; store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.GetSchemaAndTestFullGDID(store); } }
public void ManualDS_TypedRowTestVariousTypes_StrBool() { using (var store = new MySQLDataStore(getConnectString())) { store.StringBool = true; //<-------- NOTICE store.StringForTrue = "1"; store.StringForFalse = "0"; store.FullGDIDS = false; store.QueryResolver.ScriptAssembly = SCRIPT_ASM; clearAllTables(); TestLogic.TypedRowTestVariousTypes(store); } }
public void Init() { SuperInit(); // If we manage to connect to the database with the user // and password above it is our test database, and run // these tests. If anything goes wrong, ignore these // tests. try { // this is important in case a previous run ended badly ClearDB(); db = new MySQLDataStore(); db.Initialise(connect); } catch (Exception e) { m_log.Error("Exception {0}", e); Assert.Ignore(); } }
private MySQLDataStore GetTestStore() { var info = new MySQLConnectionInfo("192.168.10.246", 3306, "TestDB", "root", "password"); var store = new MySQLDataStore(info); if (store.StoreExists) { store.DeleteStore(); } if (!store.StoreExists) { store.CreateStore(); } else { store.EnsureCompatibility(); } return(store); }
public void Init() { SuperInit(); // If we manage to connect to the database with the user // and password above it is our test database, and run // these tests. If anything goes wrong, ignore these // tests. try { // clear db incase to ensure we are in a clean state ClearDB(); regionDb = new MySQLDataStore(); regionDb.Initialise(connect); db = new MySQLEstateStore(); db.Initialise(connect); } catch (Exception e) { m_log.Error("Exception {0}", e); Assert.Ignore(); } }