public void AlterarDados(string nome, string cidade, Batalhao time, bool ativo) { this.Nome = nome; this.Cidade = cidade; this.Time = time; this.Ativo = ativo; }
public Estadio(string nome, string cidade, Batalhao time) { this.Nome = nome; this.Cidade = cidade; this.Time = time; this.Ativo = true; }
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; }
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; } }
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; }