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"); }
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); } }