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(); }
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(); }
public int Get(EDegree degree) => _content.Single(x => x.Key == degree).Value;