예제 #1
0
 public void Eliminar()
 {
     using (WSCandidato.CandidatoServiceClient wsCliente = new WSCandidato.CandidatoServiceClient())
     {
         retval = wsCliente.Eliminar(new CandidatoDTO {
             Dni = "46456813"
         });
     }
     Assert.AreEqual(retval > 0, true);
 }
예제 #2
0
        public void Consultar()
        {
            CandidatoDTO dtoResponse = null;

            using (WSCandidato.CandidatoServiceClient wsCliente = new WSCandidato.CandidatoServiceClient())
            {
                dtoResponse = wsCliente.Obtener(new CandidatoDTO {
                    Dni = "46456813"
                });
                //dtoResponse = wsCliente.ObtenerAsync(new WSRequerimiento.RequerimientoDTO { Id = 2017 }).Result;

                //Assert.IsNotNull(dtoResponse);
            }
            Assert.IsNotNull(dtoResponse);
        }
예제 #3
0
 public void Registrar()
 {
     using (WSCandidato.CandidatoServiceClient wsCliente = new WSCandidato.CandidatoServiceClient())
     {
         retval = wsCliente.Insertar(new CandidatoDTO {
             Estado           = "RE",
             Dni              = "46456813",
             Nombres          = "Jorge",
             ApellidoPaterno  = "Mini",
             ApellidoMaterno  = "Pezo",
             Direccion        = "",
             Disponibilidad   = 1,
             TelefonoPersonal = "123456788",
             EstadoCivil      = "S",
             IdPuesto         = 1,
             Sexo             = "M",
             Pretencion       = 5000,
             FechaNacimiento  = DateTime.Now,
             Email            = ""
         });
     }
     Assert.AreEqual(retval > 0, true);
 }