public void ReturnTrueIfStandardInsertStatementisCorrect() { UserModel UserModel = new UserModel() { ID = 1, UID = "Testert1", FirstName = "Test", LastName = "Tester", EmailAddress = "*****@*****.**" }; string UserInsertStatement = MySQLDBStateless.GenerateStandardInsertStatement(UserModel); Assert.AreEqual($"INSERT INTO {UserModel.TableName()} (usrUID, usrFirstName, usrLastName, usrEmailAddress) VALUES ('Testert1', 'Test', 'Tester', '*****@*****.**')", UserInsertStatement); }
private void Insert() { this.ID = (int)_MySQLDBStateless.ExecInsertNonQueryReturnID(MySQLDBStateless.GenerateStandardInsertStatement(this)); }