Exemple #1
0
        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);
        }
Exemple #2
0
        public static bool Delete(string dyeCode)
        {
            TableElement te = new TableElement("DyeCode", dyeCode);

            return(m_db.Delete(te));
        }
Exemple #3
0
        public static bool Delete(string orderID)
        {
            TableElement te = new TableElement("OrderID", orderID);

            return(m_db.Delete(te));
        }
Exemple #4
0
        public static bool Delete(string userName)
        {
            TableElement te = new TableElement("UserName", userName);

            return(m_db.Delete(te));
        }