public User(NameVo name, EmailVo email, UserRole role, PasswordVo password, PhoneVo phone, Guid tenantId) { Name = name; Email = email; Role = role; Phone = phone; Password = password; SetTenantId(tenantId); Validate(); }
public void Deve_Criar_Um_Valor_De_Objeto_Senha() { var password = new PasswordVo("12345678", "12345678"); Assert.IsTrue(password.Valid); }
public void SetPassword(PasswordVo password) { Password = password; SetUpdatedAt(); }