public void TestShouldDeleteEmployeeTable() { //Arrange var employeeDataContext = new DatabaseContext <Employee>(); var databaseWrapper = new DBWrapper <Employee>(employeeDataContext); //Act var noOfrows = databaseWrapper.Delete(employee); //Assert Assert.AreEqual(1, noOfrows); }
public static bool Delete(string dyeCode) { TableElement te = new TableElement("DyeCode", dyeCode); return(m_db.Delete(te)); }
public static bool Delete(string orderID) { TableElement te = new TableElement("OrderID", orderID); return(m_db.Delete(te)); }
public static bool Delete(string userName) { TableElement te = new TableElement("UserName", userName); return(m_db.Delete(te)); }