Ejemplo n.º 1
0
        public Surname(string surname, Frecuency frecuency, Language language)
        {
            if (surname.IsEmpty())
            {
                throw new ArgumentNullException(nameof(surname));
            }

            this.surname = surname;
            Frecuency    = frecuency;
            Language     = language;
        }
Ejemplo n.º 2
0
 public void Update(string id, string transactionCode, Frecuency frecuency, decimal amount, int quantity,
                    DateTime begingDate, DateTime endDate, string description)
 {
     this.Id = id;
     this.TransactionCode = transactionCode;
     this.Frecuency       = frecuency;
     this.Amount          = amount;
     this.Quantity        = quantity;
     this.BegingDate      = begingDate;
     this.EndDate         = endDate;
     this.Description     = description;
 }
Ejemplo n.º 3
0
        public Name(string name, bool moreThanOneWord, Frecuency frecuency, Gender gender)
        {
            if (name.IsEmpty())
            {
                throw new ArgumentNullException(nameof(name));
            }

            this.name       = name;
            MoreThanOneWord = moreThanOneWord;
            Frecuency       = frecuency;
            Gender          = gender;
        }
Ejemplo n.º 4
0
        public static FixedCharge New(string transactionCode, Frecuency frecuency, decimal amount, int quantity,
                                      DateTime begingDate, DateTime endDate, string description)
        {
            var obj = new FixedCharge {
                TransactionCode = transactionCode,
                Frecuency       = frecuency,
                Amount          = amount,
                Quantity        = quantity,
                BegingDate      = begingDate,
                EndDate         = endDate,
                Description     = description,
            };

            return(obj);
        }
Ejemplo n.º 5
0
 private Name CreateName(Nombres name, Frecuency frecuency) => new Name(name.Nombre, name.EsCompuesto, frecuency, Gender.Create(name.Sexo));
Ejemplo n.º 6
0
 private Surname CreateSurname(Apellidos x, Frecuency frecuency) => new Surname(x.Apellido, frecuency, new Language(x.IdIdioma, x.Idioma.Nombre));