Beispiel #1
0
        public void AlterarJogador(Nome nome, Email email, SituacaoJogador status)
        {
            Nome  = nome;
            Email = email;

            new AddNotifications <Jogador>(this).IfFalse(status == SituacaoJogador.Ativo, "Não é possivel alterar jogador, pois status não permite");

            AddNotifications(nome, email);
        }
Beispiel #2
0
        public void AlterarJogador(Nome nome, Email email, SituacaoJogador status)
        {
            Nome   = nome;
            Email  = email;
            Status = status;

            new AddNotifications <Jogador>(this)
            .IfFalse(x => x.Status == SituacaoJogador.Ativo, Mensagens.NAO_E_POSSIVEL_ALTERAR_JOGADOR_SE_ELE_ESTIVER_ATIVO);

            AddNotifications(nome, email);
        }