Beispiel #1
0
        public Professor(Guid id, string firstName, string lastName, string email, string phone, EDegree degree) : base(email)
        {
            Id    = id;
            Email = new Email(email);
            if (!string.IsNullOrEmpty(Email.Notification))
            {
                Notifications.Add("Email", Email.Notification);
            }

            FirstName = firstName;
            LastName  = lastName;
            Phone     = phone;
            Degree    = degree;
            Validation();
        }
Beispiel #2
0
        public Professor(string firstName, string lastName, string cpf, string email, string phone, EDegree degree, string password, string salt) : base(email, password, salt, true)
        {
            if (password != string.Empty)
            {
                Password = password;
            }
            Email = new Email(email);
            if (!string.IsNullOrEmpty(Email.Notification))
            {
                Notifications.Add("Email", Email.Notification);
            }
            CPF = new CPF(cpf);
            if (!string.IsNullOrEmpty(CPF.Notification))
            {
                Notifications.Add("CPF", CPF.Notification);
            }

            FirstName = firstName;
            LastName  = lastName;
            Phone     = phone;
            Degree    = degree;
            Validation();
        }
Beispiel #3
0
 public int Get(EDegree degree) => _content.Single(x => x.Key == degree).Value;