public static void RecordWithIdNotPresent(string databaseName, string tableName, string primaryKeyField, int id)
        {
            var count = DataUtil.GetRecordCount(databaseName, tableName, primaryKeyField, id.ToString());

            Assert.IsTrue(count == 0);
        }
Beispiel #2
0
 public void TearDown()
 {
     DataUtil.DeleteDatabase(Constants.PETAPOCO_DatabaseName);
 }
        public static void IsFieldValueEqual <T>(T expectedValue, string databaseName, string tableName, string field, string primaryKeyField, int id)
        {
            var value = DataUtil.GetFieldValue <T>(databaseName, tableName, field, primaryKeyField, id.ToString());

            Assert.AreEqual(expectedValue, value);
        }