コード例 #1
0
 public void RegistrarCmp()
 {
     ServiceCmp.CmpesServiceClient proxy = new ServiceCmp.CmpesServiceClient();
     ServiceCmp.Cmp Cmp = proxy.crearCmp("Olenka Escobar", "07057975");
     Assert.AreEqual(Cmp.TxDescripcion, "Olenka Escobar");
     Assert.AreEqual(Cmp.TxDoc_Identidad, "07057975");
 }
コード例 #2
0
        public void ListarDetalleCmp()
        {
            ServiceCmp.CmpesServiceClient proxy = new ServiceCmp.CmpesServiceClient();
            ServiceCmp.Cmp[] Cmpproducto        = proxy.listarCmp();

            int f;

            for (f = 1; f <= Cmpproducto.Length; f++)
            {
                Assert.AreEqual(Cmpproducto[0].IdCmp, 1);
            }
        }
コード例 #3
0
        public void ConsultaCmp()
        {
            ServiceCmp.CmpesServiceClient proxy = new ServiceCmp.CmpesServiceClient();

            try
            {
                ServiceCmp.Cmp Cmp = proxy.consultarCmp(1);
                Assert.AreEqual(Cmp.IdCmp, 1);
            }
            catch (Exception e)
            {
                Assert.AreEqual(null, e.InnerException);
            }
        }
コード例 #4
0
 public void EliminarCmp()
 {
     ServiceCmp.CmpesServiceClient proxy = new ServiceCmp.CmpesServiceClient();
     proxy.eliminarCmp(5);
     Assert.AreEqual(null, proxy.consultarCmp(5));
 }