コード例 #1
0
ファイル: Surname.cs プロジェクト: jcl86/personas
        public Surname(string surname, Frecuency frecuency, Language language)
        {
            if (surname.IsEmpty())
            {
                throw new ArgumentNullException(nameof(surname));
            }

            this.surname = surname;
            Frecuency    = frecuency;
            Language     = language;
        }
コード例 #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;
 }
コード例 #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;
        }
コード例 #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);
        }
コード例 #5
0
ファイル: NamesRepository.cs プロジェクト: jcl86/personas
 private Name CreateName(Nombres name, Frecuency frecuency) => new Name(name.Nombre, name.EsCompuesto, frecuency, Gender.Create(name.Sexo));
コード例 #6
0
ファイル: SurnamesRepository.cs プロジェクト: jcl86/personas
 private Surname CreateSurname(Apellidos x, Frecuency frecuency) => new Surname(x.Apellido, frecuency, new Language(x.IdIdioma, x.Idioma.Nombre));