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

            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 AlterarGrupo(string nome, EnumNicho nicho)
 {
     Nome  = nome;
     Nicho = nicho;
 }