Exemplo n.º 1
0
        public Grupo(string nome, EnumsNicho nicho, Usuario usuario)
        {
            Nome    = nome;
            Nicho   = nicho;
            Usuario = usuario;

            if (usuario == null)
            {
                AddNotification("Usuario", "Informe o usuário");
            }
            new AddNotifications <Grupo>(this).
            IfNullOrInvalidLength(x => x.Nome, 3, 150).
            IfEnumInvalid(x => x.Nicho);
        }
Exemplo n.º 2
0
 public void Atualizar(string nome, EnumsNicho nicho)
 {
     this.Nicho = nicho;
     this.Nome  = nome;
 }