示例#1
0
 public void AlterarDados(string nome, string cidade, Batalhao time, bool ativo)
 {
     this.Nome   = nome;
     this.Cidade = cidade;
     this.Time   = time;
     this.Ativo  = ativo;
 }
示例#2
0
 public Estadio(string nome, string cidade, Batalhao time)
 {
     this.Nome   = nome;
     this.Cidade = cidade;
     this.Time   = time;
     this.Ativo  = true;
 }
示例#3
0
        public Usuario(Nome nome, LoginUsuario login, Senha senha, Batalhao batalhao, string matricula) : this()
        {
            if (nome == null)
            {
                throw new ExcecaoDeNegocio("Não é possível criar um usuário sem nome");
            }

            if (login == null)
            {
                throw new ExcecaoDeNegocio("Não é possível criar um usuário sem login");
            }

            this.Nome            = nome;
            this.Login           = login;
            this.Senha           = senha;
            this.Ativo           = false;
            this.UsuarioNovo     = true;
            this.Telefone        = Telefone.Vazio;
            this.PerfilDeUsuario = PerfilDeUsuario.Usuario;
            this.Batalhao        = batalhao;
            this.Matricula       = matricula;
        }
示例#4
0
        public void AlterarMeusDados(string nome, string email, string ddd, string telefone, Batalhao batalhao, string matricula)
        {
            this.Nome      = new Nome(nome);
            this.Login     = new LoginUsuario(email);
            this.Batalhao  = batalhao;
            this.Matricula = matricula;

            if (!String.IsNullOrEmpty(ddd) && !String.IsNullOrEmpty(telefone))
            {
                this.Telefone = new Telefone(ddd, telefone);
            }
            else
            {
                this.Telefone = Telefone.Vazio;
            }
        }
示例#5
0
 public void AlterarDados(string nome, string email, bool ativo, PerfilDeUsuario perfilDeUsuario, Batalhao batalhao, string matricula)
 {
     this.Nome            = new Nome(nome);
     this.Login           = new LoginUsuario(email);
     this.Ativo           = ativo;
     this.PerfilDeUsuario = perfilDeUsuario;
     this.Batalhao        = batalhao;
     this.Matricula       = matricula;
 }