public void EliminarPaciente() { try { ServicePaciente.PacientesServiceClient proxy = new ServicePaciente.PacientesServiceClient(); proxy.eliminarPaciente(5); Assert.AreEqual(null, proxy.consultarPaciente(5)); } catch (Exception e) { Assert.AreEqual("SOAP_DeleteFail", e.Message); } }
public void ConsultaPaciente() { ServicePaciente.PacientesServiceClient proxy = new ServicePaciente.PacientesServiceClient(); try { ServicePaciente.Paciente Paciente = proxy.consultarPaciente(1); Assert.AreEqual(Paciente.Id_Paciente, 1); } catch (Exception e) { Assert.AreEqual("SOAP_NotFoundFail", e.Message); } }