Esempio n. 1
0
 public Person(string name, string lastName, string phoneNumber, string email,
               AccreditationEnum accreditation, SexEnum sex)
 {
     Name          = name;
     LastName      = lastName;
     PhoneNumber   = phoneNumber;
     Email         = email;
     Accreditation = accreditation;
     Sex           = sex;
 }
Esempio n. 2
0
 private static void AddClient(ClientDto client,
     string accreditation, AccreditationEnum accreditationType, string address, string email,
     string name, string lastName, string phone, DateTime subscriptionDate, StateClientEnum state, bool isVip)
 {
     client.Accreditation = accreditation;
     client.AccreditationType = accreditationType;
     client.Address = address;
     client.Email = email;
     client.Name = name;
     client.LastName = lastName;
     client.PhoneContact = "34" + phone;
     client.SubscriptionDate = subscriptionDate;
     client.State = state;
     client.IsVip = isVip;
 }
Esempio n. 3
0
 private static Person CreatePersona(string name, string lastName, string phoneNumber, string email,
                                     AccreditationEnum accreditation, SexEnum sex)
 {
     return(new Person(name, lastName, phoneNumber, email, accreditation, sex));
 }