예제 #1
0
        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", );
        }
예제 #2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(PersonasClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IPersonas));
 }
예제 #3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(PersonasClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IPersonas));
 }
예제 #4
0
 public PersonasClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(PersonasClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
예제 #5
0
 public PersonasClient(EndpointConfiguration endpointConfiguration) :
     base(PersonasClient.GetBindingForEndpoint(endpointConfiguration), PersonasClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
예제 #6
0
 public PersonasClient() :
     base(PersonasClient.GetDefaultBinding(), PersonasClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IPersonas.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }