Ejemplo n.º 1
0
        public void XoaKhongNhapMaNCC()//Test pass
        {
            SupplierDAO u        = new SupplierDAO();
            double      expected = -1;
            double      actual   = u.Delete("");

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void XoaThanhCongNCC()//Test pass
        {
            SupplierDAO u        = new SupplierDAO();
            double      expected = 1;
            double      actual   = u.Delete("Mã NCC");

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
        public override Task <BooleanObject> DeleteSupplier(KeyObject request, ServerCallContext context)
        {
            var success = _supplierDao.Delete(new Supplier()
            {
                Id = request.Body
            });

            return(Task.FromResult(new BooleanObject()
            {
                Body = success
            }));
        }
 public Response Delete(Supplier item)
 {
     return(supplierDAO.Delete(item));
 }
Ejemplo n.º 5
0
 public int Delete(string id)
 {
     return(sDAO.Delete(id));
 }