BLL.Personas.AgregarTelefono C# (CSharp) Méthode

AgregarTelefono() public méthode

public AgregarTelefono ( TiposTelefonos tipo, string telefono ) : void
tipo TiposTelefonos
telefono string
Résultat void
        public void AgregarTelefono(TiposTelefonos tipo, string telefono)
        {
            Telefonos.Add(new PersonasTelefonos(tipo, telefono));

        }

Usage Example

        public void InsertarTest()
        {
            Personas persona = new Personas();
            persona.Nombre = "Padilla";
            persona.AgregarTelefono(TiposTelefonos.Celular, "809-881-8988");
            persona.AgregarTelefono(TiposTelefonos.Casa, "809-881-8988");

            Assert.IsTrue( persona.Insertar());



        }
All Usage Examples Of BLL.Personas::AgregarTelefono