public void CrearPersonaOK() { contratoPersona.PersonasClient conPersona = new contratoPersona.PersonasClient(); contratoPersona.Persona persona = new contratoPersona.Persona { Id = 0, Nombres = "C1", Apellidos = "C2", Celular = "123", Codigo = "U201", Correo = "CCCCC", Deuda = 0, Direccion = "XX", NroLibros = 0 }; contratoPersona.Persona nuevaPersona = conPersona.PersonaCrearAsync(persona); Assert.AreEqual("U201", ); }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(PersonasClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IPersonas)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(PersonasClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IPersonas)); }
public PersonasClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(PersonasClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public PersonasClient(EndpointConfiguration endpointConfiguration) : base(PersonasClient.GetBindingForEndpoint(endpointConfiguration), PersonasClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public PersonasClient() : base(PersonasClient.GetDefaultBinding(), PersonasClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IPersonas.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }